Sha256: 82175f98fd24ce137490834c64c80e007693bf533cc2a4c5a6392c7b9f66f30a
Contents?: true
Size: 607 Bytes
Versions: 40
Compression:
Stored size: 607 Bytes
Contents
module Devise module Strategies # Base strategy for Devise. Responsible for verifying correct scope and mapping. class Base < ::Warden::Strategies::Base # Whenever CSRF cannot be verified, we turn off any kind of storage def store? !env["devise.skip_storage"] end # 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
40 entries across 40 versions & 8 rubygems