avoid passing lists of lists to the group clause

This commit is contained in:
Aaron Patterson
2010-08-04 16:22:16 -07:00
parent 902d732617
commit 05a49c7718

View File

@@ -31,7 +31,7 @@ module ActiveRecord
end
def group(*args)
clone.tap {|r| r.group_values += args if args.present? }
clone.tap {|r| r.group_values += args.flatten if args.present? }
end
def order(*args)