Class: ThinkingSphinx::ActiveRecord::Depolymorph::ScopedReflection
- Inherits:
-
BaseReflection
- Object
- BaseReflection
- ThinkingSphinx::ActiveRecord::Depolymorph::ScopedReflection
- 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
Constructor Details
This class inherits a constructor from ThinkingSphinx::ActiveRecord::Depolymorph::BaseReflection
Instance Method Details
#call ⇒ Object
9 10 11 12 |
# File 'lib/thinking_sphinx/active_record/depolymorph/scoped_reflection.rb', line 9 def call klass.new reflection.macro, name, scope, , reflection.active_record end |