Created
July 21, 2009 11:52
-
-
Save roryf/151302 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# clones foo.notes into bar.notes | |
foo.notes.each do |note| | |
new_note = bar.notes.build(note.attributes) | |
new_note.save | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment