Sha256: 558d913f5a7dafd260d6ea67ba43271fcb9b23fb54e62fec62cbd6a93fbba560
Contents?: true
Size: 423 Bytes
Versions: 22
Compression:
Stored size: 423 Bytes
Contents
# frozen_string_literal: true module Devise # Checks the scope in the given environment and returns the associated failure app. class Delegator def call(env) failure_app(env).call(env) end def failure_app(env) app = env["warden.options"] && (scope = env["warden.options"][:scope]) && Devise.mappings[scope.to_sym].failure_app app || Devise::FailureApp end end end
Version data entries
22 entries across 22 versions & 3 rubygems