Skip to content

Instantly share code, notes, and snippets.

@Yama-to
Created June 27, 2015 12:04
Show Gist options
  • Save Yama-to/6bfb53dc02dcd4dce2b9 to your computer and use it in GitHub Desktop.
Save Yama-to/6bfb53dc02dcd4dce2b9 to your computer and use it in GitHub Desktop.
覚えておくと幸せになれるActiveRecord::Relationメソッド6選 ref: http://qiita.com/Yama-to/items/4696e9d43ebec6012129
book_data = {title: "Frozen", author: "Charles Dickens"}
book_review = {rate: 10, review: "Awesome!"}
book_data.merge(book_review)
# => {title: "Frozen", author: "Charles Dickens", rate: 10, review: "Awesome!"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment