Initial commit

This commit is contained in:
Senad Uka
2020-05-31 22:38:19 +02:00
commit 858fafc3c5
1280 changed files with 65918 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
class IssuesAndConcernsReportPresenter
def initialize(video)
@video = video
end
def project_name
video.project.name
end
def video_name
video.file.filename.to_s
end
def date_of_report
BigMediaTime.time_zone_now.strftime("%D")
end
def unreleased_appearances
video.unreleased_appearances.sort_by { |unreleased_appearance| unreleased_appearance.time_elapsed.to_f}
end
private
attr_reader :video
end