Module: Resourcelogic::Parent::Config
- Defined in:
- lib/resourcelogic/parent.rb
Instance Method Summary collapse
Instance Method Details
#belongs_to(*args) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/resourcelogic/parent.rb', line 14 def belongs_to(*args) = args. @belongs_to ||= {} args.each { |name| @belongs_to[name.to_sym] = } @belongs_to end |
#require_parent(value = nil) ⇒ Object
21 22 23 |
# File 'lib/resourcelogic/parent.rb', line 21 def require_parent(value = nil) rw_config(:require_parent, value, false) end |