mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
avoid passing lists of lists to the group clause
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user