Class: ActiveRecord::StatementCache::Query

Inherits:
Object
  • Object
show all
Defined in:
activerecord/lib/active_record/statement_cache.rb

Overview

:nodoc:

Direct Known Subclasses

PartialQuery

Instance Method Summary collapse

Constructor Details

#initialize(sql) ⇒ Query

Returns a new instance of Query.


33
34
35
# File 'activerecord/lib/active_record/statement_cache.rb', line 33

def initialize(sql)
  @sql = sql
end

Instance Method Details

#sql_for(binds, connection) ⇒ Object


37
38
39
# File 'activerecord/lib/active_record/statement_cache.rb', line 37

def sql_for(binds, connection)
  @sql
end