Created
December 24, 2016 19:15
-
-
Save bleonard/743a95f1312eb06e3b5673d9e8f742a1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
def save(*) | |
create_or_update | |
rescue ActiveRecord::RecordInvalid | |
false | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment