Module: Filterable
- Extended by:
- ActiveSupport::Concern
- Included in:
- V0::MessagesController, V0::PrescriptionsController
- Defined in:
- app/controllers/concerns/filterable.rb
Instance Method Summary collapse
Instance Method Details
#validate_filter_params! ⇒ Object
10 11 12 13 14 15 16 |
# File 'app/controllers/concerns/filterable.rb', line 10 def validate_filter_params! if params[:filter].present? return true if valid_filters? raise Common::Exceptions::InvalidFiltersSyntax, filter_query end end |