The syntax document.as_json(compact: true) is redundant as it is functionally identical to document.as_json.compact (compact comes from ActiveSupport)
We should deprecate the :compact option and remove it in the next major version.
- is related to
-
MONGOID-5169 Instrument deprecations with ActiveSupport::Deprecation functionality
- Closed
-
MONGOID-5146 Investigate using ActiveSupport deprecation framework for deprecation warnings
- Closed
- links to