From fb25c9f041999efb36ab6a348efdb2c9d5fb49ca Mon Sep 17 00:00:00 2001 From: Martin Lensment Date: Tue, 7 Jul 2015 13:29:18 +0300 Subject: [PATCH] Keep sorting #2691 --- app/models/account_activity.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/account_activity.rb b/app/models/account_activity.rb index 5bd17c79f..84a9f9137 100644 --- a/app/models/account_activity.rb +++ b/app/models/account_activity.rb @@ -27,7 +27,7 @@ class AccountActivity < ActiveRecord::Base CSV.generate(headers: true) do |csv| csv << %w(description activity_type receipt_date sum) - all.find_each do |x| + all.each do |x| # rubocop:disable Rails/FindEach csv << attributes.map { |attr| x.send(attr) } end end