lib/can_search/search_scopes.rb
# strip out any scoped keys from options and return a chained finder.
strip out any scoped keys from options and return a chained finder.
strip out any scoped keys from options and return a chained finder .
def scope_for(finder, options = {})
      return finder unless options.keys.include? @named_scope
      value = options.delete(@named_scope)
      finder.send(@named_scope, value)
    end
def scope_for ( finder , options = { } ) return finder unless options . keys . include? @named_scope value = options . delete ( @named_scope ) finder . send ( @named_scope , value ) end
strip out any scoped keys from options and return a chained finder.
strip out any scoped keys from options and return a chained finder .
finder
<not_specific>
options
<not_specific>