sanitize_sql_array

sanitize_sql_array(ary)
Instance Protected methods

Accepts an array of conditions. The array has each value sanitized and interpolated into the SQL statement.

1
["name='%s' and group_id='%s'", "foo'bar", 4]  returns  "name='foo''bar' and group_id='4'"
doc_ruby_on_rails
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.