diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2017-05-12 14:51:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-12 14:51:21 +0200 |
commit | b30760a4846d04bc48c787c95013208950906f5e (patch) | |
tree | 50aae221c26e69e9f90cb750dfd43f7977b63eb5 /activerecord/lib | |
parent | f09196153f2c5b9cc215d727e09aec84ff16fcb3 (diff) | |
parent | 0f5325a625e757d2e4374ce41cabad63f087c0b5 (diff) | |
download | rails-b30760a4846d04bc48c787c95013208950906f5e.tar.gz rails-b30760a4846d04bc48c787c95013208950906f5e.tar.bz2 rails-b30760a4846d04bc48c787c95013208950906f5e.zip |
Merge pull request #28919 from meinac/fix_ambigious_exception_message_of_select_query_method
Fix ambigious error message of select query method [ci skip]
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/relation/query_methods.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb index 1178dec706..76e529f2de 100644 --- a/activerecord/lib/active_record/relation/query_methods.rb +++ b/activerecord/lib/active_record/relation/query_methods.rb @@ -248,7 +248,7 @@ module ActiveRecord return super() end - raise ArgumentError, "Call this with at least one field" if fields.empty? + raise ArgumentError, "Call `select' with at least one field" if fields.empty? spawn._select!(*fields) end |