rails/rails — Issue #4954: unsaved changes via gsub!
Author: releu
Created: 2012-02-09 04:52:49+00:00
State: open

Hi!

I'm trying to correct a comment of the message, but record does not update in the db.

```ruby
c = Comment.last
# => #
c.content.gsub! /inp/, 'imp'
# => "it is impossible :( "
c.content
# => "it is impossible :( "
c.save
# (2.2ms) BEGIN
# User Load (1.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
# (1.1ms) COMMIT
# true
c.content_was
# => "it is impossible :( "
c.content_changed?
# => false
```