diff options
author | Godfrey Chan <godfreykfc@gmail.com> | 2014-09-20 16:55:49 +0900 |
---|---|---|
committer | Godfrey Chan <godfreykfc@gmail.com> | 2014-09-20 16:55:49 +0900 |
commit | 793e4aa9b63a066d0bf0dbd291969ec9cd2fc204 (patch) | |
tree | 08c7b2d17fd116b4625b1103b5b987951473e0f8 /activerecord/lib/active_record | |
parent | 808070b0658a6fed793b740ee74fb25c6076c96f (diff) | |
download | rails-793e4aa9b63a066d0bf0dbd291969ec9cd2fc204.tar.gz rails-793e4aa9b63a066d0bf0dbd291969ec9cd2fc204.tar.bz2 rails-793e4aa9b63a066d0bf0dbd291969ec9cd2fc204.zip |
Quick fix to address the borken build caused by #15791
This is pretty lame though, so feel free to send a PR with a better fix! ;)
cc @zev @tenderlove
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/core.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/core.rb b/activerecord/lib/active_record/core.rb index 61f1a9aa27..68e89b981e 100644 --- a/activerecord/lib/active_record/core.rb +++ b/activerecord/lib/active_record/core.rb @@ -181,7 +181,7 @@ module ActiveRecord end def find_by!(*args) - find_by(*args) or raise RecordNotFound + find_by(*args) or raise RecordNotFound.new("Couldn't find #{name}") end def initialize_generated_modules |