Class: ThinkingSphinx::ActiveRecord::Depolymorph::ConditionsReflection

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

Overview

The conditions approach is only available in Rails 3. This behaviour is superseded by ScopedReflection for Rails 4.0.

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



8
9
10
# File 'lib/thinking_sphinx/active_record/depolymorph/conditions_reflection.rb', line 8

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