app/controllers/alchemy/base_controller.rb in alchemy_cms-3.5.0 vs app/controllers/alchemy/base_controller.rb in alchemy_cms-3.6.0
- old
+ new
@@ -49,14 +49,13 @@
protected
def permission_denied(exception = nil)
if exception
- Rails.logger.debug <<-WARN
-
-/!\\ Failed to permit #{exception.action} on #{exception.subject.inspect} for:
-#{current_alchemy_user.inspect}
-WARN
+ Rails.logger.debug <<-WARN.strip_heredoc
+ /!\\ Failed to permit #{exception.action} on #{exception.subject.inspect} for:
+ #{current_alchemy_user.inspect}
+ WARN
end
if current_alchemy_user
handle_redirect_for_user
else
handle_redirect_for_guest