Module: Filterrific::HasResetFilterrificUrlMixin

Included in:
ActionControllerExtension, ActionViewExtension
Defined in:
lib/filterrific/has_reset_filterrific_url_mixin.rb

Instance Method Summary collapse

Instance Method Details

#reset_filterrific_url(opts = {}) ⇒ Object

Returns a url that can be used to reset the Filterrific params



7
8
9
10
11
# File 'lib/filterrific/has_reset_filterrific_url_mixin.rb', line 7

def reset_filterrific_url(opts = {})
  url_for(
    {filterrific: {reset_filterrific: true}}.merge(opts)
  )
end