method
disallow_raw_sql!
v7.0.0 -
Show latest stable
- Class:
ActiveRecord::InsertAll
disallow_raw_sql!(value)private
No documentation available.
# File activerecord/lib/active_record/insert_all.rb, line 172
def disallow_raw_sql!(value)
return if !value.is_a?(String) || Arel.arel_node?(value)
raise ArgumentError, "Dangerous query method (method whose arguments are used as raw " "SQL) called: #{value}. " "Known-safe values can be passed " "by wrapping them in Arel.sql()."
end