module HotDateRails::Utils
require 'pry'
Public Instance Methods
deprecate(*dep_mtds, new_mtd)
click to toggle source
# File lib/hot_date_rails/utils.rb, line 3 def deprecate(*dep_mtds, new_mtd) dep_mtds.each do |dep_mtd| define_method(dep_mtd) do |*args, &block| # warn "Warning: #{dep_mtd}() is deprecated. In the future please use #{new_mtd}()." send(new_mtd, *args, &block) end end end