Module: ActiveRecord::ConnectionAdapters::Sqlserver::QueryCache

Included in:
ActiveRecord::ConnectionAdapters::SQLServerAdapter
Defined in:
lib/active_record/connection_adapters/sqlserver/query_cache.rb

Instance Method Summary collapse

Instance Method Details

#select_one(*args) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/active_record/connection_adapters/sqlserver/query_cache.rb', line 6

def select_one(*args)
  if @query_cache_enabled
    cache_sql(args.first) { super }
  else
    super
  end
end