Skip to content

Commit 9c686c3

Browse files
committed
fix rubocop
1 parent 6783f61 commit 9c686c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/models/user.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ def balance
109109

110110
def last_ordered_products(amount = 5)
111111
products = orders.includes(:products)
112-
.order(created_at: :desc)
113-
.limit(amount + 15)
114-
.flat_map(&:products)
112+
.order(created_at: :desc)
113+
.limit(amount + 15)
114+
.flat_map(&:products)
115115

116116
products.tally
117117
.sort_by { |_, count| -count }

0 commit comments

Comments
 (0)