Module: WildlandHerd::ActsAsPermission::ClassMethods
- Defined in:
- lib/wildland_herd/acts_as_permission.rb
Instance Method Summary collapse
Instance Method Details
#build_admin(attributes = {}) ⇒ Object
22 23 24 25 26 27 28 29 30 31 |
# File 'lib/wildland_herd/acts_as_permission.rb', line 22 def build_admin(attributes={}) new( attributes.merge!( can_create: true, can_read: true, can_update: true, can_destroy: true ) ) end |