-
Type: Improvement
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
In https://jira.mongodb.org/browse/MONGOID-5344 the return value of #attributes was changed to always be a Hash. Previously it was a BSON::Document if the model instance was retrieved from the database using #find.
AR has its attributes as a Hash and does not permit indifferent access, therefore the change in https://jira.mongodb.org/browse/MONGOID-5344 I believe is correct. However it does require a flag because it is a breaking change.
https://jira.mongodb.org/browse/MONGOID-5362 is related to this ticket, but unlike the tests which should be backported as far back in 7.x as is practical the return value should only be changed in 7.5/8.0.
- has to be finished together with
-
MONGOID-5362 Test return value type of #attributes
- Closed
- is duplicated by
-
MONGOID-5346 #attributes is sometimes Hash and sometimes BSON::Document
- Closed
- related to
-
MONGOID-5344 Using concat on has_and_belongs_to_many ids default value is not working the first time
- Closed