Sha256: 5f6b8b7ca2e1773232ce38347b2572a62cd9c12c499e4dc6933083fc92df90a0
Contents?: true
Size: 601 Bytes
Versions: 4
Compression:
Stored size: 601 Bytes
Contents
module SimpleTokenAuthentication class DeviseFallbackHandler # Fallback to the Devise authentication strategies. def fallback!(controller, entity) authenticate_entity!(controller, entity) end # 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
4 entries across 4 versions & 1 rubygems