Class: ThinkingSphinx::ActiveRecord::Depolymorph::BaseReflection

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

Instance Method Summary collapse

Constructor Details

#initialize(reflection, name, class_name) ⇒ BaseReflection

Returns a new instance of BaseReflection.



4
5
6
7
8
9
10
# File 'lib/thinking_sphinx/active_record/depolymorph/base_reflection.rb', line 4

def initialize(reflection, name, class_name)
  @reflection = reflection
  @name       = name
  @class_name = class_name

  @options = reflection.options.clone
end

Instance Method Details

#callObject



12
13
14
# File 'lib/thinking_sphinx/active_record/depolymorph/base_reflection.rb', line 12

def call
  # Should be implemented by subclasses.
end