diff options
author | Arun Agrawal <arunagw@gmail.com> | 2013-05-10 11:05:07 +0200 |
---|---|---|
committer | Arun Agrawal <arunagw@gmail.com> | 2013-05-10 15:17:24 +0200 |
commit | 6ab3c730621035ef60eb117f7f9943f5c8fb4536 (patch) | |
tree | 087ff8b54970fe8a639de091b75efa3eba8ba29f | |
parent | 84c69a165380d4ae92322d4503a5b9a7201f6369 (diff) | |
download | rails-6ab3c730621035ef60eb117f7f9943f5c8fb4536.tar.gz rails-6ab3c730621035ef60eb117f7f9943f5c8fb4536.tar.bz2 rails-6ab3c730621035ef60eb117f7f9943f5c8fb4536.zip |
Remove useless else
-rw-r--r-- | activerecord/lib/active_record/relation/calculations.rb | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/relation/calculations.rb b/activerecord/lib/active_record/relation/calculations.rb index 71d33fcd4e..dddd1f46a1 100644 --- a/activerecord/lib/active_record/relation/calculations.rb +++ b/activerecord/lib/active_record/relation/calculations.rb @@ -179,11 +179,8 @@ module ActiveRecord 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 |