vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/actions.rb
# swaps one element in the list with the other.
# accepts arguments in any order. it just figures out which one is in the list and which one is not.
swaps one element in the list with the other.
accepts arguments in any order. it just figures out which one is in the list and which one is not.
swaps one element in the list with the other . accepts arguments in any order . it just figures out which one is in the list and which one is not .
def swap(one, two)
    ::ActiveSupport::Deprecation.warn("live_search is deprecated, use search.live = true instead", caller) if [two.to_sym, one.to_sym].include? :live_search
    if include? one
      exclude one
      add two
    else
      exclude two
      add one
    end
  end
def swap ( one , two ) :: ActiveSupport :: Deprecation . warn ( "live_search is deprecated, use search.live = true instead" , caller ) if [ two . to_sym , one . to_sym ] . include? :live_search if include? one exclude one add two else exclude two add one end end
swaps one element in the list with the other.
swaps one element in the list with the other .
one
<not_specific>
two
<not_specific>