Sha256: 967aecafb84ced9e31638eac74a409de02d4b2eedee41d1e684e032f901df1a6
Contents?: true
Size: 475 Bytes
Versions: 15
Compression:
Stored size: 475 Bytes
Contents
module Admin module SearchHelper def search(resource = @resource, params = params) if (typus_search = resource.typus_defaults_for(:search)) && typus_search.any? hidden_filters = params.dup rejections = %w(controller action locale utf8 sort_order order_by search page) hidden_filters.delete_if { |k, v| rejections.include?(k) } render "admin/helpers/search/search", :hidden_filters => hidden_filters end end end end
Version data entries
15 entries across 15 versions & 1 rubygems