123456789_123456789_123456789_123456789_123456789_

Class: ActiveRecord::StatementCache::Params

Do not use. This class is for internal use only.
Relationships & Source Files
Inherits: Object
Defined in: activerecord/lib/active_record/statement_cache.rb

Class Method Summary

Instance Method Summary

Constructor Details

.new ⇒ Params

[ GitHub ]

  
# File 'activerecord/lib/active_record/statement_cache.rb', line 120

def initialize
  @index = 0
end

Instance Method Details

#bind(key = @index)

[ GitHub ]

  
# File 'activerecord/lib/active_record/statement_cache.rb', line 124

def bind(key = @index)
  @index += 1
  Substitute.new(key)
end