Class: ThinkingSphinx::ActiveRecord::Association

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

Instance Method Summary collapse

Constructor Details

#initialize(column) ⇒ Association

Returns a new instance of Association



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

def initialize(column)
  @column = column
end

Instance Method Details

#stackObject



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

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

#string?Boolean

Returns:

  • (Boolean)


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

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

#to_sObject



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

def to_s
  @column.to_s
end