Module: Kernel
- Defined in:
- lib/deprecation_toolkit/warning.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.__original_warn ⇒ Object
29 |
# File 'lib/deprecation_toolkit/warning.rb', line 29 alias_method :__original_warn, :warn |
.warn(*messages) ⇒ Object
31 32 33 34 35 36 37 38 39 40 |
# File 'lib/deprecation_toolkit/warning.rb', line 31 def warn(*) = .join("\n") += "\n" unless .end_with?("\n") if DeprecationToolkit::Warning.deprecation_triggered?() ActiveSupport::Deprecation.warn() else __original_warn() end end |