Skip to content

Commit

Permalink
add assignments start/end date filter
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiomagalhaes committed May 19, 2024
1 parent 091437e commit ce8fc83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/assignments_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ce8fc83

Please sign in to comment.