instance method
replace_bind_variable
Ruby on Rails 8.1.2
Since v5.2.8.1 PrivateSignature
replace_bind_variable(connection, value)
No documentation comment.
Parameters
-
connectionreq -
valuereq
Source
# File activerecord/lib/active_record/sanitization.rb, line 213
def replace_bind_variable(connection, value)
if ActiveRecord::Relation === value
value.to_sql
else
quote_bound_value(connection, value)
end
end
Defined in activerecord/lib/active_record/sanitization.rb line 213
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Sanitization::ClassMethods