instance method
quote_bound_value
Ruby on Rails 7.0.10
Since v7.0.10 Last seen in v7.1.6Available in: v7.0.10 v7.1.6
Signature
quote_bound_value(value)
Quote a value to be used as a bound parameter of unknown type. For example, MySQL might perform dangerous castings when comparing a string to a number, so this method will cast numbers to string.
Parameters
-
valuereq
Source
# File activerecord/lib/active_record/connection_adapters/abstract/quoting.rb, line 50
def quote_bound_value(value)
quote(value)
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/quoting.rb line 50
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::Quoting