Class: Warden::ManagerDeprecation::Dummy

Inherits:
Object
  • Object
show all
Defined in:
lib/warden/manager_deprecation.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object



15
16
17
18
# File 'lib/warden/manager_deprecation.rb', line 15

def method_missing(method, *args)
  warn "[DEPRECATION] warden.serializers.#{method} is deprecated."
  nil
end

Instance Method Details

#update(type, &block) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/warden/manager_deprecation.rb', line 5

def update(type, &block)
  if type == :session
    warn "[DEPRECATION] warden.serializers.update(:session) is deprecated. " <<
         "Please use Warden::Manager.serialize_from_session and Warden::Manager.serialize_into_session"
    Warden::SessionSerializer.class_eval(&block)
  else
    method_missing(update)
  end
end