Skip to content

Commit

Permalink
make a test fail
Browse files Browse the repository at this point in the history
  • Loading branch information
goldsteindecoro committed Jan 13, 2025
1 parent 64f33ed commit 7707eeb
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions app/controllers/case_contacts_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@ class CaseContactsController < ApplicationController
after_action :verify_authorized, except: %i[leave]

def index
authorize CaseContact

@current_organization_groups = current_organization_groups

@filterrific = initialize_filterrific(
all_case_contacts,
params[:filterrific],
select_options: {
sorted_by: CaseContact.options_for_sorted_by
}
) || return

case_contacts = CaseContact.case_hash_from_cases(@filterrific.find)
case_contacts = case_contacts.select { |k, _v| k == params[:casa_case_id].to_i } if params[:casa_case_id].present?

@presenter = CaseContactPresenter.new(case_contacts)
# authorize CaseContact
#
# @current_organization_groups = current_organization_groups
#
# @filterrific = initialize_filterrific(
# all_case_contacts,
# params[:filterrific],
# select_options: {
# sorted_by: CaseContact.options_for_sorted_by
# }
# ) || return
#
# case_contacts = CaseContact.case_hash_from_cases(@filterrific.find)
# case_contacts = case_contacts.select { |k, _v| k == params[:casa_case_id].to_i } if params[:casa_case_id].present?
#
# @presenter = CaseContactPresenter.new(case_contacts)
end

def drafts
Expand Down

0 comments on commit 7707eeb

Please sign in to comment.