Flowdock
method

build_record

Importance_0
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: ThroughAssociation
build_record(attributes) private

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/through_association.rb, line 109
        def build_record(attributes)
          inverse = source_reflection.inverse_of
          target = through_association.target

          if inverse && target && !target.is_a?(Array)
            attributes[inverse.foreign_key] = target.id
          end

          super
        end
Register or log in to add new notes.