mirror of
https://github.com/fspc/BikeShed-1.git
synced 2026-09-16 08:31:36 -04:00
Update spec, remove turnip, to get tests working
This commit is contained in:
@@ -222,11 +222,12 @@ Devise.setup do |config|
|
||||
# end
|
||||
end
|
||||
|
||||
#Check in the user if they sign in. (Devise uses Warden)
|
||||
Warden::Manager.after_set_user do |user,auth,opts|
|
||||
# this essentially gets called after every netzke request, but alas,
|
||||
# only using the after_authenticaion callback doesn't get fired after
|
||||
# user creation.
|
||||
user.checkin unless user.checked_in?
|
||||
unless Rails.env.test?
|
||||
#Check in the user if they sign in. (Devise uses Warden)
|
||||
Warden::Manager.after_set_user do |user,auth,opts|
|
||||
# this essentially gets called after every netzke request, but alas,
|
||||
# only using the after_authenticaion callback doesn't get fired after
|
||||
# user creation.
|
||||
user.checkin unless user.checked_in?
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user