aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/Rakefile
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2017-05-27 14:36:18 +0200
committerKasper Timm Hansen <kaspth@gmail.com>2017-05-27 14:36:18 +0200
commitfcc47bcfccc7578aa0414710eecdad006085a911 (patch)
treed09cad16eed4c367ddd809a9699da265ca821830 /actionpack/Rakefile
parent3a131b6c008eed58fddfa23f2787d9eef657331a (diff)
downloadrails-fcc47bcfccc7578aa0414710eecdad006085a911.tar.gz
rails-fcc47bcfccc7578aa0414710eecdad006085a911.tar.bz2
rails-fcc47bcfccc7578aa0414710eecdad006085a911.zip
Use non-raising finder.
`find` raises when it can't find a record, so we'll never reach the else. Switch to `find_by` which returns nil when no record can be found.
Diffstat (limited to 'actionpack/Rakefile')
0 files changed, 0 insertions, 0 deletions