method

add_left_association

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: HasAndBelongsToMany
add_left_association(name, options) 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/builder/has_and_belongs_to_many.rb, line 34
        def self.add_left_association(name, options)
          belongs_to name, required: false, **options
          self.left_reflection = _reflect_on_association(name)
        end
Register or log in to add new notes.