diff options
author | Derek Prior <derekprior@gmail.com> | 2013-10-15 13:04:58 -0400 |
---|---|---|
committer | Derek Prior <derekprior@gmail.com> | 2013-10-15 13:11:43 -0400 |
commit | 23dfc39ed9db4591bb7b22ea6abaf7b965d1bed5 (patch) | |
tree | 8936f2cee3eee75e4c97e073f8b2230c81f0c933 /activerecord/lib | |
parent | dd37ff81d13136a5e8a78f79d8b1cd11e2427e01 (diff) | |
download | rails-23dfc39ed9db4591bb7b22ea6abaf7b965d1bed5.tar.gz rails-23dfc39ed9db4591bb7b22ea6abaf7b965d1bed5.tar.bz2 rails-23dfc39ed9db4591bb7b22ea6abaf7b965d1bed5.zip |
Pluck on NullRelation accepts a list of columns
`pluck` was updated to accept a list of columns, but the `NullRelation`
was never updated to match that signature. As a result, calling `pluck`
on a `NullRelation` results in an `ArgumentError`.
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/null_relation.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/null_relation.rb b/activerecord/lib/active_record/null_relation.rb index 1f3d377e53..080b20134d 100644 --- a/activerecord/lib/active_record/null_relation.rb +++ b/activerecord/lib/active_record/null_relation.rb @@ -6,7 +6,7 @@ module ActiveRecord @records = [] end - def pluck(_column_name) + def pluck(*column_names) [] end |