Module: Renalware::Transplants::Registrations::WaitListQuery::Scopes
- Defined in:
- app/models/renalware/transplants/registrations/wait_list_query.rb
Overview
Mixing in some scopes here rather than using ransack as I cannot get ransack scopes to ‘or’ together other scopes like this. I seem to spend a lot of time debugging the vagaries of ransack and wonder if its more pain that its worth!
Instance Method Summary collapse
Instance Method Details
#apply_filter(filter) ⇒ Object
40 41 42 43 44 45 46 47 48 |
# File 'app/models/renalware/transplants/registrations/wait_list_query.rb', line 40 def apply_filter(filter) case filter when :status_mismatch current_status_is_active.ukt_status_is_not_active .or(current_status_is_not_active.ukt_status_is_active) else all end end |