Flowdock
method

graft

Importance_0
v3.0.0 - Show latest stable - 0 notes - Class: ActiveRecord::Associations::ClassMethods::JoinDependency
graft(*associations) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/associations.rb, line 1856
          def graft(*associations)
            associations.each do |association|
              join_associations.detect {|a| association == a} ||
              build(association.reflection.name, association.find_parent_in(self) || join_base, association.join_class)
            end
            self
          end
Register or log in to add new notes.