Skip to content

Instantly share code, notes, and snippets.

@mnordin
Last active December 18, 2015 11:09
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 mnordin/b91386acd5c4959caa0b to your computer and use it in GitHub Desktop.
Save mnordin/b91386acd5c4959caa0b to your computer and use it in GitHub Desktop.
after using inverse_of
post.reload
=> #<Post id: 1, title: "First post">
post.title = "First post - revised"
=> "First post - revised"
post.title
=> "First post - revised"
comment.post.title
=> "First post - revised"
post.object_id
=> 70168784655800
comment.post.object_id
=> 70168784655800
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment