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