lib/authority/controller.rb in authority-2.3.0 vs lib/authority/controller.rb in authority-2.3.1
- old
+ new
@@ -36,11 +36,11 @@
def authority_actions(action_map)
authority_action_map.merge!(action_map.symbolize_keys)
end
def authority_action(action_map)
- puts "Authority's `authority_action` method has been renamed \
+ Authority.logger.warn "Authority's `authority_action` method has been renamed \
to `authority_actions` (plural) to reflect the fact that you can \
set multiple actions in one shot. Please update your controllers \
accordingly. (called from #{caller.first})".squeeze(' ')
authority_actions(action_map)
end
@@ -75,10 +75,10 @@
# Renders a static file to minimize the chances of further errors.
#
# @param [Exception] error, an error that indicates the user tried to perform a forbidden action.
def authority_forbidden(error)
- Authority.configuration.logger.warn(error.message)
+ Authority.logger.warn(error.message)
render :file => Rails.root.join('public', '403.html'), :status => 403, :layout => false
end
private