Pack up functionality done
This commit is contained in:
@@ -1,3 +1,14 @@
|
||||
class Work < ApplicationRecord
|
||||
belongs_to :homie
|
||||
end
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user