method
type_casted_binds
v5.1.7 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::Quoting
type_casted_binds(binds)public
No documentation available.
# File activerecord/lib/active_record/connection_adapters/abstract/quoting.rb, line 163
def type_casted_binds(binds) # :nodoc:
if binds.first.is_a?(Array)
binds.map { |column, value| type_cast(value, column) }
else
binds.map { |attr| type_cast(attr.value_for_database) }
end
end