# File lib/her/model/deprecated_methods.rb, line 7 def self.deprecate!(old, new, object, *args) line = begin raise StandardError rescue StandardError => e e.backtrace[2] end warn "#{line} - The `#{old}` method is deprecated and may be removed soon. Please update your code with `#{new}` instead." object.send(new, *args) end