Sha256: d37f17e4e2d69da8d5cb432252a7f6d09d253d36506ce4d52a8b9c19c931d02b

Contents?: true

Size: 441 Bytes

Versions: 2

Compression:

Stored size: 441 Bytes

Contents

# encoding: utf-8
module Warden
  # Sets up a place for deprecation of methods from the main proxy
  module ProxyDeprecation
    def default_strategies=(*strategies)
      warn "[DEPRECATION] warden.default_strateiges= is deprecated.  Instead use warden.set_default_strategies(*strategies) with an optional :scope => :scope)"
      strategies.push(:scope => @config.default_scope)
      set_default_strategies(*strategies)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
warden-0.10.1 lib/warden/proxy_deprecation.rb
warden-0.10.0 lib/warden/proxy_deprecation.rb