Module: Pageflow::Deprecation Private
- Defined in:
- lib/pageflow/deprecation.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
- .deprecator ⇒ Object private
- .warn(message, callstack = nil) ⇒ Object private
Class Method Details
.deprecator ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
15 16 17 |
# File 'lib/pageflow/deprecation.rb', line 15 def deprecator @deprecator ||= ActiveSupport::Deprecation.new(Pageflow::VERSION, 'Pageflow') end |
.warn(message, callstack = nil) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
11 12 13 |
# File 'lib/pageflow/deprecation.rb', line 11 def warn(, callstack = nil) deprecator.warn(, callstack || caller_locations(2)) end |