lib/authority/abilities.rb in authority-1.1.0 vs lib/authority/abilities.rb in authority-2.0.0
- old
+ new
@@ -8,14 +8,13 @@
# All delegate to the methods of the same name on the model's authorizer.
module Abilities
extend ActiveSupport::Concern
- # Let the Foo model know that its authorizer is called 'FooAuthorizer'
- # (but let the user change that)
+ # Assume authorizer is `ApplicationAuthorizer` (but let the user change that)
included do
class_attribute :authorizer_name
- self.authorizer_name = "#{name}Authorizer"
+ self.authorizer_name = "ApplicationAuthorizer"
end
module ClassMethods
Authority.adjectives.each do |adjective|