def resource_index
      if self.class.included_modules.include? APPI::FiltersResources
        apply_filter_params resource_class.all
      else
        resource_class.all
      end
    end
def resource_index
      if self.class.included_modules.include? APPI::FiltersResources
        apply_filter_params resource_class.all
      else
        resource_class.all
      end
    end
If the controller has APPI::FiltersResources, apply_filter_params.
 Also doubles as a hook for a developer to write their own filter
 logic or scope behaviour for the index collection, such as applying
 accessible_by(current_ability) as with CanCan.