Sha256: 338617f9c447a7ce0f0524b1d3899e627070938ed736a3f20de21be425208b98
Contents?: true
Size: 583 Bytes
Versions: 4
Compression:
Stored size: 583 Bytes
Contents
module SimpleTokenAuthentication class SignInHandler # Devise sign in is performed through a controller # which includes Devise::Controllers::SignInOut def sign_in(controller, record, *args) integrate_with_devise_trackable!(controller) controller.send(:sign_in, record, *args) end private def integrate_with_devise_trackable!(controller) # Sign in using token should not be tracked by Devise trackable # See https://github.com/plataformatec/devise/issues/953 controller.env["devise.skip_trackable"] = true end end end
Version data entries
4 entries across 4 versions & 2 rubygems