Module: Hickey::DomainDetector::BelongsToAssociation
- Defined in:
- lib/hickey/domain_detector/associations.rb
Instance Method Summary collapse
Instance Method Details
#belongs_to(owner, reflection, attr_value) ⇒ Object
4 5 6 7 8 |
# File 'lib/hickey/domain_detector/associations.rb', line 4 def belongs_to(owner, reflection, attr_value) association = attr_value.accept_for_hickey(reflection.klass, self) owner.send("#{reflection.primary_key_name}=", association.id) Proc.new{} end |