Files
old-roraccounting/app/models/work.rb
2020-10-21 15:11:20 +02:00

15 lines
247 B
Ruby

class Work < ApplicationRecord
belongs_to :homie
def to_csv_row
[homie.name,
0,
amount,
description,
created_at.strftime("%Y-%m-%d"),
false].map do |element|
element.to_s
end
end
end