Class: ThinkingSphinx::ActiveRecord::Polymorpher

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

Instance Method Summary collapse

Constructor Details

#initialize(source, column, class_names) ⇒ Polymorpher

Returns a new instance of Polymorpher.



4
5
6
# File 'lib/thinking_sphinx/active_record/polymorpher.rb', line 4

def initialize(source, column, class_names)
  @source, @column, @class_names = source, column, class_names
end

Instance Method Details

#morph!Object



8
9
10
11
# File 'lib/thinking_sphinx/active_record/polymorpher.rb', line 8

def morph!
  append_reflections
  morph_properties
end