diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-10-15 12:09:46 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-10-15 12:09:46 -0700 |
commit | 9f80937e82bbb592023ac3186826b59730370902 (patch) | |
tree | e66540c1880acd9ff719d584f3824d39c8601000 /activerecord/lib/active_record | |
parent | e3e3851ed662fc55ee88c16a3cd9bb87f24e6bd6 (diff) | |
parent | 23dfc39ed9db4591bb7b22ea6abaf7b965d1bed5 (diff) | |
download | rails-9f80937e82bbb592023ac3186826b59730370902.tar.gz rails-9f80937e82bbb592023ac3186826b59730370902.tar.bz2 rails-9f80937e82bbb592023ac3186826b59730370902.zip |
Merge pull request #12547 from derekprior/dp-fix-null-relation-pluck
Pluck on NullRelation should accept a list of columns
Diffstat (limited to 'activerecord/lib/active_record')
-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 |