lib/authority/controller.rb in authority-1.1.0 vs lib/authority/controller.rb in authority-2.0.0

- old
+ new

@@ -1,10 +1,9 @@ module Authority + # Gets included into the app's controllers automatically by the railtie module Controller - # Gets included into the app's controllers automatically by the railtie - extend ActiveSupport::Concern included do rescue_from(Authority::SecurityViolation, :with => Authority::Controller.security_violation_callback) class_attribute :authority_resource @@ -64,10 +63,10 @@ # `authorize_actions_for` is called def run_authorization_check authorize_action_for self.class.authority_resource end - # Convencience wrapper for sending configured user_method to extract the + # Convenience wrapper for sending configured user_method to extract the # request's current user # # @return [Object] the user object returned from sending the user_method def authority_user send(Authority.configuration.user_method)