From 793e4aa9b63a066d0bf0dbd291969ec9cd2fc204 Mon Sep 17 00:00:00 2001 From: Godfrey Chan Date: Sat, 20 Sep 2014 16:55:49 +0900 Subject: 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 --- activerecord/lib/active_record/core.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record') 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 -- cgit v1.2.3