Module: ActiveSupport::Deprecation
- Defined in:
- lib/roxml/extensions/deprecation.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.warn_with_internals_exclusion(message = nil, callstack = caller) ⇒ Object
9 10 11 |
# File 'lib/roxml/extensions/deprecation.rb', line 9 def warn_with_internals_exclusion( = nil, callstack = caller) warn_without_internals_exclusion(, callstack.reject {|line| line =~ /\/roxml(-[\d\.]+)?\/lib\// || line.include?('lib/roxml.rb') }) end |
Instance Method Details
#deprecation_message(callstack, message = nil) ⇒ Object
15 16 17 18 |
# File 'lib/roxml/extensions/deprecation.rb', line 15 def (callstack, = nil) ||= "You are using deprecated behavior which will be removed from the next major or minor release" "DEPRECATION WARNING: #{}. #{(callstack)}" end |