module Resourcey::ControllerFiltering
Public Instance Methods
filtered_resources()
click to toggle source
# File lib/resourcey/controller_filtering.rb, line 3 def filtered_resources return resources if filter_class.nil? filter_instance = filter_class.new(params) filter_instance.apply(resources) end
Private Instance Methods
filter_class()
click to toggle source
# File lib/resourcey/controller_filtering.rb, line 12 def filter_class "#{resource_model}Filter".safe_constantize end