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

Version Path
typus-3.0.12 app/helpers/admin/search_helper.rb
typus-3.0.11 app/helpers/admin/search_helper.rb
typus-3.0.11.rc5 app/helpers/admin/search_helper.rb
typus-3.0.11.rc4 app/helpers/admin/search_helper.rb
typus-3.0.11.rc3 app/helpers/admin/search_helper.rb
typus-3.1.0.rc6 app/helpers/admin/search_helper.rb
typus-3.1.0.rc5 app/helpers/admin/search_helper.rb
typus-3.1.0.rc4 app/helpers/admin/search_helper.rb
typus-3.1.0.rc3 app/helpers/admin/search_helper.rb
typus-3.1.0.rc2 app/helpers/admin/search_helper.rb
typus-3.0.11.rc2 app/helpers/admin/search_helper.rb
typus-3.0.11.rc1 app/helpers/admin/search_helper.rb
typus-3.1.0.rc1 app/helpers/admin/search_helper.rb
typus-3.0.10 app/helpers/admin/search_helper.rb
typus-3.0.9 app/helpers/admin/search_helper.rb