Module: SimplyAuthorized::UserModel::PrepMethod
- Defined in:
- lib/simply_authorized/user_model.rb
Instance Method Summary collapse
- #simply_authorized(options = {}) ⇒ Object (also: #authorized)
Instance Method Details
#simply_authorized(options = {}) ⇒ Object Also known as:
13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/simply_authorized/user_model.rb', line 13 def (={}) include SimplyAuthorized::UserModel::InstanceMethods extend SimplyAuthorized::UserModel::ClassMethods has_and_belongs_to_many :roles, :uniq => true, :before_add => :before_add_role, :after_add => :after_add_role, :before_remove => :before_remove_role, :after_remove => :after_remove_role end |