Skip to content

Instantly share code, notes, and snippets.

@edgarjs
Created May 12, 2015 22:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edgarjs/783f87adf56e99a8f29d to your computer and use it in GitHub Desktop.
Save edgarjs/783f87adf56e99a8f29d to your computer and use it in GitHub Desktop.
serialize dirty behavior 4.2.0 vs 4.2.1
class Person < ActiveRecord::Base
serialize :something, Hash
end
# rails 4.2.0
Person.last.changes # => { "something" => [{}, {}] }
# rails 4.2.1
Person.last.changes # => {}
@edgarjs
Copy link
Author

edgarjs commented May 12, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment