Permalink
Browse files

Remove useless else

  • Loading branch information...
1 parent 84c69a1 commit 6ab3c730621035ef60eb117f7f9943f5c8fb4536 @arunagw arunagw committed May 10, 2013
Showing with 0 additions and 3 deletions.
  1. +0 −3 activerecord/lib/active_record/relation/calculations.rb
@@ -179,11 +179,8 @@ def calculate(operation, column_name, options = {})
def pluck(column_name)
if column_name.is_a?(Symbol) && column_names.include?(column_name.to_s)
column_name = "#{connection.quote_table_name(table_name)}.#{connection.quote_column_name(column_name)}"
- else
- column_name = column_name.to_s
end
- 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

0 comments on commit 6ab3c73

Please sign in to comment.