Class: RedmineExtensions::Deprecator
- Defined in:
- lib/redmine_extensions/deprecator.rb
Instance Method Summary collapse
Instance Method Details
#deprecation_warning(method_name, message, caller_backtrace = nil) ⇒ Object
4 5 6 7 8 |
# File 'lib/redmine_extensions/deprecator.rb', line 4 def deprecation_warning(method_name, , caller_backtrace = nil) caller_backtrace ||= caller(2) = "#{method_name} is deprecated and will be removed from RedmineExtensions in v1.0" ActiveSupport::Deprecation.warn , caller_backtrace end |