Module: Resourcelogic::Parent::Config
- Defined in:
- lib/resourcelogic/parent.rb
Instance Method Summary collapse
Instance Method Details
#belongs_to(name = nil, options = {}) ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/resourcelogic/parent.rb', line 12 def belongs_to(name = nil, = {}) @belongs_to ||= {} if name.nil? @belongs_to else @belongs_to[name.to_sym] = end 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 |