diff options
author | Mehmet Emin INAC <mehmetemininac@gmail.com> | 2017-04-28 11:44:52 +0200 |
---|---|---|
committer | Mehmet Emin INAC <mehmetemininac@gmail.com> | 2017-05-08 10:50:42 +0200 |
commit | 0f5325a625e757d2e4374ce41cabad63f087c0b5 (patch) | |
tree | e0651887f845130d8987a38f5d98f5970372b3b5 /activerecord/lib/active_record | |
parent | 5974334aeb23c21100af5bf877b385dbbe762bc6 (diff) | |
download | rails-0f5325a625e757d2e4374ce41cabad63f087c0b5.tar.gz rails-0f5325a625e757d2e4374ce41cabad63f087c0b5.tar.bz2 rails-0f5325a625e757d2e4374ce41cabad63f087c0b5.zip |
Fix ambigious error message of select query method
Diffstat (limited to 'activerecord/lib/active_record')
-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 |