Flowdock
method

add_right_association

Importance_0
v4.2.7 - Show latest stable - 0 notes - Class: HasAndBelongsToMany
add_right_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 69
        def self.add_right_association(name, options)
          rhs_name = name.to_s.singularize.to_sym
          belongs_to rhs_name, options
          self.right_reflection = _reflect_on_association(rhs_name)
        end
Register or log in to add new notes.