method
type_casted_binds
v6.1.3.1 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::Quoting
type_casted_binds(binds)private
No documentation available.
# File activerecord/lib/active_record/connection_adapters/abstract/quoting.rb, line 198
def type_casted_binds(binds)
case binds.first
when Array
binds.map { |column, value| type_cast(value, column) }
else
binds.map do |value|
if ActiveModel::Attribute === value
type_cast(value.value_for_database)
else
type_cast(value)
end
end
end
end