Sha256: 3eec8df15bcc26f0ad5d6af72d25936b4dbd68d7169438ecfe0f0639bf908448
Contents?: true
Size: 458 Bytes
Versions: 7
Compression:
Stored size: 458 Bytes
Contents
module SimpleTokenAuthentication class FallbackAuthenticationHandler # Devise authentication is performed through a controller # which includes Devise::Controllers::Helpers # See http://rdoc.info/github/plataformatec/devise/master/\ # Devise/Controllers/Helpers#define_helpers-class_method def authenticate_entity!(controller, entity) controller.send("authenticate_#{entity.name_underscore}!".to_sym) end end end
Version data entries
7 entries across 7 versions & 2 rubygems