mirror of
https://github.com/fspc/BikeShed-1.git
synced 2026-09-16 08:31:36 -04:00
Initial stab at check-in feature
This commit is contained in:
@@ -221,3 +221,9 @@ Devise.setup do |config|
|
||||
# manager.default_strategies(:scope => :user).unshift :some_external_strategy
|
||||
# end
|
||||
end
|
||||
|
||||
#Check in the user if they sign in. (Devise uses Warden)
|
||||
Warden::Manager.after_authentication do |user,auth,opts|
|
||||
user.checkin unless user.checked_in?
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user