Module: RestfulAclModel::ClassMethods

Defined in:
lib/restful_acl_model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#momObject

Returns the value of attribute mom.



9
10
11
# File 'lib/restful_acl_model.rb', line 9

def mom
  @mom
end

Instance Method Details

#has_parent?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/restful_acl_model.rb', line 16

def has_parent?
  !self.mom.nil?
end

#logical_parent(model) ⇒ Object



11
12
13
14
# File 'lib/restful_acl_model.rb', line 11

def logical_parent(model)
  self.mom = model
  include RestfulAclModel::InstanceMethods
end