spec/helpers/strategies/single.rb in loyal_warden-2.0.0 vs spec/helpers/strategies/single.rb in loyal_warden-2.0.1
- old
+ new
@@ -1,5 +1,5 @@
-# -*- encoding : utf-8 -*-
+# encoding: utf-8
Warden::Strategies.add(:single) do
def authenticate!
request.env['warden.spec.strategies'] ||= []
request.env['warden.spec.strategies'] << :single
success!("Valid User")