lib/warden/config.rb
# Set the default strategies to use.
# :api: public
Set the default strategies to use.
:api: public
Set the default strategies to use . : api : public
def default_strategies(*strategies)
      opts  = Hash === strategies.last ? strategies.pop : {}
      hash  = self[:default_strategies]
      scope = opts[:scope] || :_all
      hash[scope] = strategies.flatten unless strategies.empty?
      hash[scope] || hash[:_all] || []
    end
def default_strategies ( * strategies ) opts = Hash === strategies . last ? strategies . pop : { } hash = self [ :default_strategies ] scope = opts [ :scope ] || :_all hash [ scope ] = strategies . flatten unless strategies . empty? hash [ scope ] || hash [ :_all ] || [ ] end
Set the default strategies to use.
Set the default strategies to use .
strategies
<not_specific>