method
new
rails latest stable - Class:
ActiveRecord::StatementCache::BindMap
new(bound_attributes)public
No documentation available.
# File activerecord/lib/active_record/statement_cache.rb, line 114
def initialize(bound_attributes)
@indexes = []
@bound_attributes = bound_attributes
bound_attributes.each_with_index do |attr, i|
if ActiveModel::Attribute === attr && Substitute === attr.value
@indexes << i
end
end
end