Method: ActiveRecord::Reflection::ThroughReflection#initialize

Defined in:
lib/active_record/reflection.rb

#initialize(delegate_reflection) ⇒ ThroughReflection

Returns a new instance of ThroughReflection.



633
634
635
636
637
# File 'lib/active_record/reflection.rb', line 633

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