Sha256: e3086caacba5e7f2ce69767fe95f6fbdf6429d4ec1e3657e4e2ae0d0503237ff
Contents?: true
Size: 477 Bytes
Versions: 32
Compression:
Stored size: 477 Bytes
Contents
module Devise module Strategies # Base strategy for Devise. Responsible for verifying correct scope and mapping. class Base < ::Warden::Strategies::Base # Checks if a valid scope was given for devise and find mapping based on # this scope. def mapping @mapping ||= begin mapping = Devise.mappings[scope] raise "Could not find mapping for #{scope}" unless mapping mapping end end end end end
Version data entries
32 entries across 27 versions & 7 rubygems