Flowdock
method

add_reflection

Importance_0
v5.2.3 - 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 35
    def self.add_reflection(ar, name, reflection)
      ar.clear_reflections_cache
      name = name.to_s
      ar._reflections = ar._reflections.except(name).merge!(name => reflection)
    end
Register or log in to add new notes.