method

add_reflection

Importance_0
v4.2.7 - Show latest stable - 0 notes - Class: ActiveRecord::Reflection
add_reflection(ar, name, reflection) 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/reflection.rb, line 34
    def self.add_reflection(ar, name, reflection)
      ar.clear_reflections_cache
      ar._reflections = ar._reflections.merge(name.to_s => reflection)
    end
Register or log in to add new notes.