diff --git a/app/controllers/impressionist_controller.rb b/app/controllers/impressionist_controller.rb index ec1c8a6..aa15edb 100644 --- a/app/controllers/impressionist_controller.rb +++ b/app/controllers/impressionist_controller.rb @@ -158,8 +158,8 @@ def params_hash #use both @current_user and current_user helper def user_id - user_id = @current_user ? @current_user.id : nil rescue nil - user_id = current_user ? current_user.id : nil rescue nil if user_id.blank? + user_id = @current_user&.id rescue nil + user_id = current_user&.id rescue nil if user_id.blank? user_id end end