Class: ThinkingSphinx::ActiveRecord::Depolymorph::ScopedReflection

Inherits:
BaseReflection
  • Object
show all
Defined in:
lib/thinking_sphinx/active_record/depolymorph/scoped_reflection.rb

Overview

This scoped approach is only available in Rails 4.0. This behaviour is superseded by AssociationReflection for Rails 4.1, and was preceded by ConditionsReflection for Rails 3.2.

Instance Method Summary collapse

Methods inherited from BaseReflection

#initialize

Constructor Details

This class inherits a constructor from ThinkingSphinx::ActiveRecord::Depolymorph::BaseReflection

Instance Method Details

#callObject



9
10
11
12
# File 'lib/thinking_sphinx/active_record/depolymorph/scoped_reflection.rb', line 9

def call
  klass.new reflection.macro, name, scope, options,
    reflection.active_record
end