method
quote_bound_value
v7.0.0 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::MySQL::Quoting
quote_bound_value(value)public
No documentation available.
# File activerecord/lib/active_record/connection_adapters/mysql/quoting.rb, line 9
def quote_bound_value(value)
case value
when Numeric
quote(value.to_s)
when BigDecimal
quote(value.to_s("F"))
when true
"'1'"
when false
"'0'"
else
quote(value)
end
end