1
0
mirror of https://github.com/fspc/BikeShed-1.git synced 2025-02-28 16:53:23 -05:00

Changed so that user gets checked in after create.

This commit is contained in:
Jason Denney 2013-08-17 14:00:36 -04:00
parent a6b41b5560
commit 4e7f3a1761

View File

@ -223,7 +223,8 @@ Devise.setup do |config|
end end
#Check in the user if they sign in. (Devise uses Warden) #Check in the user if they sign in. (Devise uses Warden)
Warden::Manager.after_authentication do |user,auth,opts| Warden::Manager.after_set_user do |user,auth,opts|
#this essentially gets called after every netzke request, but alas.
user.checkin unless user.checked_in? user.checkin unless user.checked_in?
end end