class ActiveRecord::Reflection::ThroughReflection
def initialize(delegate_reflection)
def initialize(delegate_reflection) @delegate_reflection = delegate_reflection @klass = delegate_reflection.options[:anonymous_class] @source_reflection_name = delegate_reflection.options[:source] ensure_option_not_given_as_class!(:source_type) end