Class: ThinkingSphinx::ActiveRecord::Association
- Inherits:
-
Object
- Object
- ThinkingSphinx::ActiveRecord::Association
- Defined in:
- lib/thinking_sphinx/active_record/association.rb
Instance Method Summary collapse
-
#initialize(column) ⇒ Association
constructor
A new instance of Association.
- #stack ⇒ Object
- #string? ⇒ Boolean
- #to_s ⇒ Object
Constructor Details
#initialize(column) ⇒ Association
Returns a new instance of Association.
4 5 6 |
# File 'lib/thinking_sphinx/active_record/association.rb', line 4 def initialize(column) @column = column end |
Instance Method Details
#stack ⇒ Object
8 9 10 |
# File 'lib/thinking_sphinx/active_record/association.rb', line 8 def stack @column.__stack + [@column.__name] end |
#string? ⇒ Boolean
12 13 14 |
# File 'lib/thinking_sphinx/active_record/association.rb', line 12 def string? @column.is_a?(String) end |
#to_s ⇒ Object
16 17 18 |
# File 'lib/thinking_sphinx/active_record/association.rb', line 16 def to_s @column.to_s end |