Skip to content

Commit 8a00eb8

Browse files
johnnyshieldsp
andauthored
MONGOID-5324 Remove deprecated Mongoid::Factory::TYPE constant (#5242)
* Remove deprecated Mongoid::Factory::TYPE constant. It is not used in the code. * add release note Co-authored-by: shields <[email protected]> Co-authored-by: Oleg Pudeyev <[email protected]>
1 parent 40a647b commit 8a00eb8

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

docs/release-notes/mongoid-8.0.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,3 +316,12 @@ Replaced ``Mongoid::Criteria#geo_spacial`` with ``#geo_spatial``
316316
The previously deprecated ``Mongoid::Criteria#geo_spacial`` method has been
317317
removed in Mongoid 8. It has been replaced one-for-one with ``#geo_spatial``
318318
which was added in Mongoid 7.2.0.
319+
320+
321+
Removed Deprecated Constants
322+
----------------------------
323+
324+
Mongoid 8 removes the following deprecated constants that are not expected
325+
to have been used outside of Mongoid:
326+
327+
- ``Mongoid::Factory::TYPE``

lib/mongoid/factory.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ module Mongoid
66
module Factory
77
extend self
88

9-
# @deprecated
10-
TYPE = "_type".freeze
11-
129
# Builds a new +Document+ from the supplied attributes.
1310
#
1411
# This method either instantiates klass or a descendant of klass if the attributes include

0 commit comments

Comments
 (0)