Class: ActiveSupport::Deprecation::DeprecationProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/active_support/deprecation.rb

Overview

:nodoc:

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(called, *args, &block) ⇒ Object (private)



134
135
136
137
# File 'lib/active_support/deprecation.rb', line 134

def method_missing(called, *args, &block)
  warn caller, called, args
  target.__send__(called, *args, &block)
end

Instance Method Details

#inspectObject

Don’t give a deprecation warning on inspect since test/unit and error logs rely on it for diagnostics.



129
130
131
# File 'lib/active_support/deprecation.rb', line 129

def inspect
  target.inspect
end