Permalink
Browse files

Delete unnecessary line that was necessary before I changed the code …

…and it became no longer necessary.
  • Loading branch information...
1 parent 173eaca commit 13a9efe62ed202919e208bbee8565ffd68e39ca3 @jonleighton jonleighton committed Dec 22, 2011
Showing with 0 additions and 1 deletion.
  1. +0 −1 activerecord/lib/active_record/relation/calculations.rb
@@ -177,7 +177,6 @@ def calculate(operation, column_name, options = {})
# Person.where(:confirmed => true).limit(5).pluck(:id)
#
def pluck(column_name)
- column_name = column_name.to_s
klass.connection.select_all(select(column_name).arel).map! do |attributes|
klass.type_cast_attribute(attributes.keys.first, klass.initialize_attributes(attributes))
end

1 comment on commit 13a9efe

Owner

fxn commented on 13a9efe Dec 22, 2011

LOL

Please sign in to comment.