Sha256: 12bd6b76bc5515bad7507f1e90b7702075b96dfcedb177304c939ac30ce86ee8
Contents?: true
Size: 541 Bytes
Versions: 34
Compression:
Stored size: 541 Bytes
Contents
module Challah module Providers # Get a list of all authorization providers other than password provider def custom_providers providers.reject { |k, v| k == :password } end # Register a new authorization provider. # # Usage: # # Challah.register_provider(:facebook, FacebookProvider) def register_provider(name, klass) @providers[name] = klass end # Get the list of all authorization providers that have been registered. def providers @providers.dup end end end
Version data entries
34 entries across 34 versions & 1 rubygems