mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 16:53:37 +02:00
Keep sorting #2691
This commit is contained in:
parent
fafbba20d6
commit
fb25c9f041
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ class AccountActivity < ActiveRecord::Base
|
||||||
CSV.generate(headers: true) do |csv|
|
CSV.generate(headers: true) do |csv|
|
||||||
csv << %w(description activity_type receipt_date sum)
|
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) }
|
csv << attributes.map { |attr| x.send(attr) }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue