Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def set_artist_and_composition
- artist = Artist.find_or_create_by_name(@artist_name)
- self.composition = Composition.find_or_create_by_name_and_artist_id(@composition_name, artist.id)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement