Module: PassionView::Filterable::Controller
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/passion_view/filterable.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#filter_params ⇒ Object
34 35 36 37 38 39 40 |
# File 'lib/passion_view/filterable.rb', line 34 def filter_params action = params[:action]&.to_sym raise "Unfilterable action: #{action.inspect}" unless self.class.filter?(action) params[:filters]&.to_unsafe_h || {} end |