Sha256: 09db7fc447608b74b0f0ee4f42417c047d420958397d5c4c3ebf0a4a171bf21b
Contents?: true
Size: 468 Bytes
Versions: 64
Compression:
Stored size: 468 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
64 entries across 58 versions & 10 rubygems
Version | Path |
---|---|
devise-1.1.3 | lib/devise/strategies/base.rb |
devise-1.1.2 | lib/devise/strategies/base.rb |
devise-1.1.1 | lib/devise/strategies/base.rb |
devise-1.1.0 | lib/devise/strategies/base.rb |