Sha256: 75e80f236d0c5d9c8d5a56e723ead1d719bb7b82bcc012cac5c078ac255ffdc0

Contents?: true

Size: 242 Bytes

Versions: 19

Compression:

Stored size: 242 Bytes

Contents

# encoding: utf-8
Warden::Strategies.add(:single) do
  def authenticate!
    request.env['warden.spec.strategies'] ||= []
    request.env['warden.spec.strategies'] << :single
    success!("Valid User")
  end

  def store?
    false
  end
end

Version data entries

19 entries across 19 versions & 6 rubygems

Version Path
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/warden-1.2.6/spec/helpers/strategies/single.rb
warden-1.2.6 spec/helpers/strategies/single.rb
warden-1.2.5 spec/helpers/strategies/single.rb
warden-1.2.4 spec/helpers/strategies/single.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/spec/helpers/strategies/single.rb
loyal_warden-2.0.1 spec/helpers/strategies/single.rb
loyal_warden-0.0.5 spec/helpers/strategies/single.rb
warden-1.2.3 spec/helpers/strategies/single.rb
devise_sociable-0.1.0 vendor/bundle/gems/warden-1.2.1/spec/helpers/strategies/single.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/warden-1.2.1/spec/helpers/strategies/single.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/warden-1.1.1/spec/helpers/strategies/single.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/warden-1.1.1/spec/helpers/strategies/single.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/warden-1.1.1/spec/helpers/strategies/single.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/warden-1.1.1/spec/helpers/strategies/single.rb
warden-1.2.1 spec/helpers/strategies/single.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/warden-1.1.1/spec/helpers/strategies/single.rb
warden-1.2.0 spec/helpers/strategies/single.rb
warden-1.1.1 spec/helpers/strategies/single.rb
warden-1.1.0 spec/helpers/strategies/single.rb