aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorGodfrey Chan <godfreykfc@gmail.com>2014-09-20 16:55:49 +0900
committerGodfrey Chan <godfreykfc@gmail.com>2014-09-20 16:55:49 +0900
commit793e4aa9b63a066d0bf0dbd291969ec9cd2fc204 (patch)
tree08c7b2d17fd116b4625b1103b5b987951473e0f8 /activerecord
parent808070b0658a6fed793b740ee74fb25c6076c96f (diff)
downloadrails-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')
-rw-r--r--activerecord/lib/active_record/core.rb2
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