Class: Module
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#webrat_deprecate(old_method_name, new_method_name) ⇒ Object
2 3 4 5 6 7 |
# File 'lib/webrat/core_extensions/deprecate.rb', line 2 def webrat_deprecate(old_method_name, new_method_name) define_method old_method_name do |*args| warn "#{old_method_name} is deprecated. Use #{new_method_name} instead." __send__(new_method_name, *args) end end |