OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/lib/deprecated_alias.rb

8 lines
354 B

module DeprecatedAlias
def deprecated_alias(old_method, new_method)
define_method(old_method) do |*args, &block|
ActiveSupport::Deprecation.warn "#{old_method} is deprecated and will be removed in a future OpenProject version. Please use #{new_method} instead.", caller
send(new_method, *args, &block)
end
end
end