Class: ThinkingSphinx::ActiveRecord::Polymorpher
- Inherits:
-
Object
- Object
- ThinkingSphinx::ActiveRecord::Polymorpher
- Defined in:
- lib/thinking_sphinx/active_record/polymorpher.rb
Instance Method Summary collapse
-
#initialize(source, column, class_names) ⇒ Polymorpher
constructor
A new instance of Polymorpher.
- #morph! ⇒ Object
Constructor Details
#initialize(source, column, class_names) ⇒ Polymorpher
Returns a new instance of Polymorpher.
2 3 4 |
# File 'lib/thinking_sphinx/active_record/polymorpher.rb', line 2 def initialize(source, column, class_names) @source, @column, @class_names = source, column, class_names end |
Instance Method Details
#morph! ⇒ Object
6 7 8 9 |
# File 'lib/thinking_sphinx/active_record/polymorpher.rb', line 6 def morph! append_reflections morph_properties end |