Method: ActiveRecord::StatementCache::PartialQuery#initialize
- Defined in:
- lib/active_record/statement_cache.rb
#initialize(values) ⇒ PartialQuery
Returns a new instance of PartialQuery.
43 44 45 46 47 48 |
# File 'lib/active_record/statement_cache.rb', line 43 def initialize values @values = values @indexes = values.each_with_index.find_all { |thing,i| Arel::Nodes::BindParam === thing }.map(&:last) end |