Sha256: 691790427806f81fb32f482ce3b7c4505a35b04c501faeb32145dc63c7d5c936

Contents?: true

Size: 439 Bytes

Versions: 9

Compression:

Stored size: 439 Bytes

Contents

# encoding: utf-8
require 'warden/declarable'

module Warden
  module Strategies
    extend Warden::Declarable
    
    class << self
      def check_validity!(label, strategy)
        return if strategy.method_defined?(:authenticate!)
        raise NoMethodError, "authenticate! is not declared in the #{label.inspect} strategy" 
      end
      
      alias :_strategies :_declarations
    end # << self

  end # Strategies
end # Warden

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
warden-0.8.1 lib/warden/strategies.rb
warden-0.8.0 lib/warden/strategies.rb
warden-0.7.0 lib/warden/strategies.rb
warden-0.6.5 lib/warden/strategies.rb
warden-0.6.4 lib/warden/strategies.rb
warden-0.6.3 lib/warden/strategies.rb
warden-0.6.2 lib/warden/strategies.rb
warden-0.6.1 lib/warden/strategies.rb
warden-0.6.0 lib/warden/strategies.rb