mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 08:52:04 +02:00
Fix rubocop #2691
This commit is contained in:
parent
f7556f48c8
commit
715e052dcd
2 changed files with 9 additions and 5 deletions
|
@ -25,8 +25,8 @@ class AccountActivity < ActiveRecord::Base
|
|||
CSV.generate(headers: true) do |csv|
|
||||
csv << %w(description activity_type receipt_date sum)
|
||||
|
||||
all.each do |x|
|
||||
csv << attributes.map{ |attr| x.send(attr) }
|
||||
all.find_each do |x|
|
||||
csv << attributes.map { |attr| x.send(attr) }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue