Created
September 17, 2014 17:16
-
-
Save bds/779cf95ada5c59b5dafc to your computer and use it in GitHub Desktop.
Ruby Exception Oneliner
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
(rdb:1) begin model.association.find_by(label: field["name"]); rescue => e; puts e.class; end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment