Module: ActsPermissive::PermissiveUser::ClassMethods
- Defined in:
- lib/acts_permissive/permissive_user.rb
Instance Method Summary collapse
Instance Method Details
#acts_permissive ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/acts_permissive/permissive_user.rb', line 9 def acts_permissive send :include, ActsPermissive::PermissiveUser::InstanceMethods has_many :groupings, :as => :permissible, :class_name => "ActsPermissive::Grouping", :dependent => :destroy has_many :permissions, :through => :groupings, :class_name => "ActsPermissive::Permission", :dependent => :destroy end |