Method: Cloned::DestinationProxy#concat
- Defined in:
- lib/cloned/destination_proxy.rb
#concat(clon) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/cloned/destination_proxy.rb', line 8 def concat(clon) if @owner.class.reflections[@association.to_s].is_a?(ActiveRecord::Reflection::HasManyReflection) @owner.public_send(@association).concat(clon) else @owner.public_send("#{@association}=", clon) end end |