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

Version Path
graffititracker_devise-1.0.11 lib/devise/strategies/base.rb
devise-1.0.11 lib/devise/strategies/base.rb
devise-1.0.10 lib/devise/strategies/base.rb
devise_ennder-1.4.1.0.9 test/rails_app/vendor/plugins/devise/lib/devise/strategies/base.rb
devise_ennder-1.4.1.0.9 lib/devise/strategies/base.rb
devise_ennder-1.3.1.0.9 lib/devise/strategies/base.rb
devise_ennder-1.3.1.0.9 test/rails_app/vendor/plugins/devise/lib/devise/strategies/base.rb
devise_ennder-1.2.1.0.9 test/rails_app/vendor/plugins/devise/lib/devise/strategies/base.rb
devise_ennder-1.2.1.0.9 lib/devise/strategies/base.rb
devise_ennder-1.1.1.0.9 lib/devise/strategies/base.rb
devise_ennder-1.1.1.0.9 test/rails_app/vendor/plugins/devise/lib/devise/strategies/base.rb
devise_ennder-1.0.1.0.9 test/rails_app/vendor/plugins/devise/lib/devise/strategies/base.rb
devise_ennder-1.0.1.0.9 lib/devise/strategies/base.rb
devise-1.0.9 lib/devise/strategies/base.rb
dcu-devise-1.0.7 lib/devise/strategies/base.rb
devise-1.0.8 lib/devise/strategies/base.rb
ivanvc-devise-1.0.7.1 lib/devise/strategies/base.rb
mongoid-devise-1.0.1 lib/devise/strategies/base.rb
devise-1.0.7 lib/devise/strategies/base.rb
devise-1.0.6 lib/devise/strategies/base.rb