Skip to content

Commit

Permalink
allow dev user
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Cain committed Aug 8, 2023
1 parent 91ba516 commit 3a12001
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ def after_sign_in_path_for(resource)
def current_user_dev
@current_user_dev ||= User.find_by_username('admin') || User.new
end
# alias current_user current_user_dev if Rails.env.development?

alias current_user current_user_dev if Rails.env.development?

# After signing out from the local application,
# redirect to the logout path for the Login app
Expand Down

0 comments on commit 3a12001

Please sign in to comment.