This commit is contained in:
Martin Lensment 2015-07-07 12:47:20 +03:00
parent f7556f48c8
commit 715e052dcd
2 changed files with 9 additions and 5 deletions

View file

@ -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