Permalink
Browse files

Remove extra collect call

  • Loading branch information...
1 parent 82cb477 commit cf0e44c771319bcd8ec0038f8502fe0baa5fa738 @carlosantoniodasilva carlosantoniodasilva committed Apr 10, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/reflection.rb
@@ -617,7 +617,7 @@ def association_primary_key(klass = nil)
# # => [:tag, :tags]
#
def source_reflection_names
- (options[:source] ? [options[:source]] : [name.to_s.singularize, name]).collect { |n| n }.uniq
+ (options[:source] ? [options[:source]] : [name.to_s.singularize, name]).uniq
end
def source_reflection_name # :nodoc:

0 comments on commit cf0e44c

Please sign in to comment.