Sha256: 9566aa28aeb39386958a1c45fdf5afd6ce7e9bb18dc6eeae368416c93a3a116a
Contents?: true
Size: 626 Bytes
Versions: 7
Compression:
Stored size: 626 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"] = SimpleTokenAuthentication.skip_devise_trackable end end end
Version data entries
7 entries across 7 versions & 1 rubygems