Class: ThinkingSphinx::ActiveRecord::DatabaseAdapters::AbstractAdapter

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

Direct Known Subclasses

MySQLAdapter, PostgreSQLAdapter

Instance Method Summary collapse

Constructor Details

#initialize(model) ⇒ AbstractAdapter



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

def initialize(model)
  @model = model
end

Instance Method Details

#quote(column) ⇒ Object



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

def quote(column)
  @model.connection.quote_column_name(column)
end

#quoted_table_nameObject



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

def quoted_table_name
  @model.quoted_table_name
end

#utf8_query_preObject



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

def utf8_query_pre
  []
end