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-2.0.4 lib/devise/strategies/base.rb
devise-2.0.2 lib/devise/strategies/base.rb
devise-2.0.1 lib/devise/strategies/base.rb
devise-2.0.0 lib/devise/strategies/base.rb
devise-2.0.0.rc2 lib/devise/strategies/base.rb
devise-2.0.0.rc lib/devise/strategies/base.rb
devise-1.5.3 lib/devise/strategies/base.rb
cloudfoundry-devise-1.5.2 lib/devise/strategies/base.rb
devise-1.5.2 lib/devise/strategies/base.rb
devise-1.5.1 lib/devise/strategies/base.rb
devise-1.5.0 lib/devise/strategies/base.rb
devise-1.5.0.rc1 lib/devise/strategies/base.rb
devise-1.4.9 lib/devise/strategies/base.rb
devise-1.4.8 lib/devise/strategies/base.rb
devise-1.4.7 lib/devise/strategies/base.rb
devise-1.4.5 lib/devise/strategies/base.rb
devise-1.4.3 lib/devise/strategies/base.rb
devise-1.4.2 lib/devise/strategies/base.rb
devise-1.4.1 lib/devise/strategies/base.rb
devise-1.3.4 lib/devise/strategies/base.rb