module Rolify::Utils
Public Instance Methods
deprecate(old_method, new_method)
click to toggle source
# File lib/rolify/utils.rb, line 3 def deprecate(old_method, new_method) define_method(old_method) do |*args| warn "[DEPRECATION] #{caller.first}: `#{old_method}` is deprecated. Please use `#{new_method}` instead." send(new_method, *args) end end