Methods

Class Index [+]

Quicksearch

DataMapper::Deprecate

Public Instance Methods

deprecate(old_method, new_method) click to toggle source
   # File lib/dm-core/support/deprecate.rb, line 3
3:     def deprecate(old_method, new_method)
4:       class_eval         def #{old_method}(*args, &block)          warn "\#{self.class}##{old_method} is deprecated, use \#{self.class}##{new_method} instead (\#{caller.first})"          send(#{new_method.inspect}, *args, &block)        end, __FILE__, __LINE__ + 1
5:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.