You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MONGOID-5509: Deprecate all feature flags which were introduced in Mongoid 7.x (#5489)
* Deprecate the use_activesupport_time_zone_deprecated config option.
* Typo
* Mongoid 8.1 should deprecate all feature flags which were introduced in the 7.x series, with intent to remove them in Mongoid 9.0.
---------
Co-authored-by: shields <[email protected]>
Copy file name to clipboardExpand all lines: lib/mongoid/warnings.rb
+12-1Lines changed: 12 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,18 @@ def warning(id, message)
25
25
warning:as_json_compact_deprecated,'#as_json :compact option is deprecated. Please call #compact on the returned Hash object instead.'
26
26
warning:symbol_type_deprecated,'The BSON Symbol type is deprecated by MongoDB. Please use String or StringifiedSymbol field types instead of the Symbol field type.'
27
27
warning:legacy_readonly,'The readonly! method will only mark the document readonly when the legacy_readonly feature flag is switched off.'
28
-
warning:use_activesupport_time_zone_deprecated,'Config option :use_activesupport_time_zone is deprecated and should be removed from your config. It will be always true beginning in Mongoid 9.0.'
28
+
warning:use_activesupport_time_zone_deprecated,'Config option :use_activesupport_time_zone is deprecated and should be removed from your config. It will always be true beginning in Mongoid 9.0.'
29
+
warning:broken_aggregables_deprecated,'Config option :broken_aggregables is deprecated. It will always be false beginning in Mongoid 9.0. Please use load_defaults for Mongoid 8.0 or later, then remove it from your config.'
30
+
warning:broken_alias_handling_deprecated,'Config option :broken_alias_handling is deprecated. It will always be false beginning in Mongoid 9.0. Please use load_defaults for Mongoid 8.0 or later, then remove it from your config.'
31
+
warning:broken_and_deprecated,'Config option :broken_and is deprecated. It will always be false beginning in Mongoid 9.0. Please use load_defaults for Mongoid 8.0 or later, then remove it from your config.'
32
+
warning:broken_scoping_deprecated,'Config option :broken_scoping is deprecated. It will always be false beginning in Mongoid 9.0. Please use load_defaults for Mongoid 8.0 or later, then remove it from your config.'
33
+
warning:broken_updates_deprecated,'Config option :broken_updates is deprecated. It will always be false beginning in Mongoid 9.0. Please use load_defaults for Mongoid 8.0 or later, then remove it from your config.'
34
+
warning:compare_time_by_ms_deprecated,'Config option :compare_time_by_ms is deprecated. It will always be true beginning in Mongoid 9.0. Please use load_defaults for Mongoid 8.0 or later, then remove it from your config.'
35
+
warning:legacy_attributes_deprecated,'Config option :legacy_attributes is deprecated. It will always be false beginning in Mongoid 9.0. Please use load_defaults for Mongoid 8.0 or later, then remove it from your config.'
36
+
warning:legacy_pluck_distinct_deprecated,'Config option :legacy_pluck_distinct is deprecated. It will always be false beginning in Mongoid 9.0. Please use load_defaults for Mongoid 8.0 or later, then remove it from your config.'
37
+
warning:legacy_triple_equals_deprecated,'Config option :legacy_triple_equals is deprecated. It will always be false beginning in Mongoid 9.0. Please use load_defaults for Mongoid 8.0 or later, then remove it from your config.'
38
+
warning:object_id_as_json_oid_deprecated,'Config option :object_id_as_json_oid is deprecated. It will always be false beginning in Mongoid 9.0. Please use load_defaults for Mongoid 8.0 or later, then remove it from your config.'
39
+
warning:overwrite_chained_operators_deprecated,'Config option :overwrite_chained_operators is deprecated. It will always be false beginning in Mongoid 9.0. Please use load_defaults for Mongoid 8.0 or later, then remove it from your config.'
29
40
warning:mutable_ids,'In Mongoid 9.0 the _id field will be immutable. In earlier versions of 8.x, mutating the _id field was supported inconsistently. Prepare your code for 9.0 by setting Mongoid::Config.immutable_ids to true.'
0 commit comments