diff --git a/app/controllers/assignments_controller.rb b/app/controllers/assignments_controller.rb index 4af6be8..806e881 100644 --- a/app/controllers/assignments_controller.rb +++ b/app/controllers/assignments_controller.rb @@ -15,7 +15,8 @@ def index assignments_filter[:start_date], assignments_filter[:end_date] ) - @assignments = Assignment.where(requirement: requirements) + @assignments = Assignment.where(requirement: requirements).active_in_period(assignments_filter[:start_date], + assignments_filter[:end_date]) end def show; end