Method: ActiveRecord::StatementCache::BindMap#initialize
- Defined in:
- lib/active_record/statement_cache.rb
#initialize(bound_attributes) ⇒ BindMap
Returns a new instance of BindMap.
98 99 100 101 102 103 104 105 106 107 |
# File 'lib/active_record/statement_cache.rb', line 98 def initialize(bound_attributes) @indexes = [] @bound_attributes = bound_attributes bound_attributes.each_with_index do |attr, i| if Substitute === attr.value @indexes << i end end end |