app/helpers/acts_as_data_table_helper.rb
def scope_filter_link_url(group, scope, options)
    args            = options.delete(:args)
    toggle          = options.delete(:toggle)
    auto_remove     = scope && toggle && acts_as_data_table_session.active_filter?(group, scope, args)
    remove          = options.delete(:remove) || auto_remove

    if remove
      url_for({:scope_filters => {:action => 'remove', :group => group}})
    else
      url_for({:scope_filters => {:action => 'add', :group => group, :scope => scope, :args => args}})
    end
  end
#
# Generates a URL to add/remove/toggle a given scope filter
#
# @see #scope_filter_link for arguments
#
# @return [String] The generated URL
#
Generates a URL to add/remove/toggle a given scope filter
Generates a URL to add / remove / toggle a given scope filter
def scope_filter_link_url(group, scope, options)
    args            = options.delete(:args)
    toggle          = options.delete(:toggle)
    auto_remove     = scope && toggle && acts_as_data_table_session.active_filter?(group, scope, args)
    remove          = options.delete(:remove) || auto_remove
    if remove
      url_for({:scope_filters => {:action => 'remove', :group => group}})
    else
      url_for({:scope_filters => {:action => 'add', :group => group, :scope => scope, :args => args}})
    end
  end
def scope_filter_link_url ( group , scope , options ) args = options . delete ( :args ) toggle = options . delete ( :toggle ) auto_remove = scope && toggle && acts_as_data_table_session . active_filter? ( group , scope , args ) remove = options . delete ( :remove ) || auto_remove if remove url_for ( { :scope_filters => { :action => 'remove' , :group => group } } ) else url_for ( { :scope_filters => { :action => 'add' , :group => group , :scope => scope , :args => args } } ) end end
Generates a URL to add/remove/toggle a given scope filter
Generates a URL to add / remove / toggle a given scope filter
The generated URL
The generated URL
String
group
scope
options
see
scope_filter_link for arguments
scope_filter_link for arguments