Module: Mongoid::Deprecable Private
- Included in:
- Mongoid
- Defined in:
- lib/mongoid/deprecable.rb
Overview
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.
Adds ability to declare Mongoid-specific deprecations.
Instance Method Summary collapse
-
#deprecate(target_module, *method_descriptors) ⇒ Object
private
Declares method(s) as deprecated.
Instance Method Details
#deprecate(target_module, *method_descriptors) ⇒ 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.
Declares method(s) as deprecated.
30 31 32 33 |
# File 'lib/mongoid/deprecable.rb', line 30 def deprecate(target_module, *method_descriptors) @_deprecator ||= Mongoid::Deprecation.new @_deprecator.deprecate_methods(target_module, *method_descriptors) end |