Skip to content

Instantly share code, notes, and snippets.

@smathy
Created July 17, 2015 18:25
Show Gist options
  • Save smathy/7ee0dc2e270491f141fd to your computer and use it in GitHub Desktop.
Save smathy/7ee0dc2e270491f141fd to your computer and use it in GitHub Desktop.
[7] pry(main)> f = Foo.new
=> #<Foo:0x007ff0f3cbfd68 id: nil, name: nil, created_at: nil, updated_at: nil>
[8] pry(main)> f.changes
=> {}
[9] pry(main)> f.name = "Blah"
=> "Blah"
[10] pry(main)> f.changes
=> {"name"=>[nil, "Blah"]}
[11] pry(main)>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment