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.6 lib/devise/strategies/base.rb
devise_sociable-0.1.0 vendor/bundle/gems/devise-1.5.4/lib/devise/strategies/base.rb
devise_sociable-0.1.0 vendor/bundle/gems/devise-1.2.1/lib/devise/strategies/base.rb
devise-2.0.5 lib/devise/strategies/base.rb
devise-1.5.4 lib/devise/strategies/base.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/devise-2.0.4/lib/devise/strategies/base.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/devise-2.1.0/lib/devise/strategies/base.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/devise-2.0.4/lib/devise/strategies/base.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/devise-2.1.0/lib/devise/strategies/base.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/devise-2.1.0/lib/devise/strategies/base.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/devise-2.0.4/lib/devise/strategies/base.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/devise-2.0.4/lib/devise/strategies/base.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/devise-2.1.0/lib/devise/strategies/base.rb
rmello-devise-2.1.0.2 lib/devise/strategies/base.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/devise-2.0.4/lib/devise/strategies/base.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/devise-2.1.0/lib/devise/strategies/base.rb
devise-2.1.0 lib/devise/strategies/base.rb
devise-2.1.0.rc2 lib/devise/strategies/base.rb
upstream-devise-2.1.0.rc lib/devise/strategies/base.rb
devise-2.1.0.rc lib/devise/strategies/base.rb