Skip to content

Commit

Permalink
Merge pull request #28919 from meinac/fix_ambigious_exception_message…
Browse files Browse the repository at this point in the history
…_of_select_query_method

Fix ambigious error message of select query method [ci skip]
  • Loading branch information
kaspth committed May 12, 2017
2 parents f091961 + 0f5325a commit b30760a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/relation/query_methods.rb
Expand Up @@ -248,7 +248,7 @@ def select(*fields)
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

Expand Down

0 comments on commit b30760a

Please sign in to comment.