rails/rails — Issue #3740: ActiveRecord New Record - Single Quote 
Author: jameschheng
Created: 2011-11-24 02:43:48+00:00
State: open

string = "James's"
MyModel.create(:name => string)

Expected Behavior:
INSERT INTO `my_models` (`name`) VALUES ('James\'s')

Actual Behavior:
INSERT INTO `my_models` (`name`) VALUES ('Jamess')