add channel for checkin process

This commit is contained in:
phyusin
2017-12-13 15:58:44 +06:30
parent 5ba010c1e6
commit 211db16311
8 changed files with 81 additions and 4 deletions

View File

@@ -2,6 +2,8 @@ class BaseOrigamiController < ActionController::Base
include LoginVerification
layout "origami"
before_action :checkin_process
#before_action :check_installation
protect_from_forgery with: :exception
rescue_from CanCan::AccessDenied do |exception|
@@ -13,4 +15,7 @@ class BaseOrigamiController < ActionController::Base
@current_user ||= Employee.find_by_token_session(session[:session_token]) if session[:session_token]
end
def checkin_process
CheckinJob.set(wait: 30.seconds).perform_later()
end
end