Method: ActiveRecord::Reflection::ThroughReflection#initialize

Defined in:
activerecord/lib/active_record/reflection.rb

#initialize(delegate_reflection) ⇒ ThroughReflection

Returns a new instance of ThroughReflection.



756
757
758
759
760
# File 'activerecord/lib/active_record/reflection.rb', line 756

def initialize(delegate_reflection)
  @delegate_reflection = delegate_reflection
  @klass = delegate_reflection.options[:anonymous_class]
  @source_reflection_name = delegate_reflection.options[:source]
end