Class: ThinkingSphinx::ActiveRecord::Association

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

Instance Method Summary (collapse)

Constructor Details

- (Association) initialize(column)



2
3
4
# File 'lib/thinking_sphinx/active_record/association.rb', line 2

def initialize(column)
  @column = column
end

Instance Method Details

- (Object) stack



6
7
8
# File 'lib/thinking_sphinx/active_record/association.rb', line 6

def stack
  @column.__stack + [@column.__name]
end

- (Boolean) string?



10
11
12
# File 'lib/thinking_sphinx/active_record/association.rb', line 10

def string?
  @column.is_a?(String)
end

- (Object) to_s



14
15
16
# File 'lib/thinking_sphinx/active_record/association.rb', line 14

def to_s
  @column.to_s
end