ProcedureOverview: add object to contain overview logic

This commit is contained in:
Simon Lehericey 2017-05-12 15:47:05 +02:00
parent 98a616c115
commit e7d39ca650
3 changed files with 172 additions and 0 deletions

View file

@ -141,4 +141,7 @@ class Procedure < ActiveRecord::Base
}
end
def procedure_overview(start_date, notifications_count)
ProcedureOverview.new(self, start_date, notifications_count)
end
end