app/controllers/application_controller.rb
Consider simplifying this complex logical expression. Open
Open
if devise_controller? && resource_name == :user && (
# registration
action_name == 'new' || action_name == 'create' ||
# change password. Only for logout user because this action_names are also used on user_edit_registration_path
((action_name == 'edit' || action_name == 'update') && !user_signed_in?)