I know about prepared statements, but if I\'m using raw SQL, does ActiveRecord have a way to manually escape values?
Something like this would be nice:
You can do:
Dude.sanitize("O'Malley")
or
Dude.connection.quote("O'Malley")
both with the same result: => "'O''Malley'"
=> "'O''Malley'"