lib/authority/abilities.rb in authority-1.0.0.pre3 vs lib/authority/abilities.rb in authority-1.0.0.pre4
- old
+ new
@@ -9,9 +9,10 @@
module Abilities
extend ActiveSupport::Concern
# Let the Foo model know that its authorizer is called 'FooAuthorizer'
+ # (but let the user change that)
included do
class_attribute :authorizer_name
self.authorizer_name = "#{name}Authorizer"
end