method

add_reflection

Importance_0
v6.1.7.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 21
      def 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.