-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Associations
GlobalID::Identification is used in rails to serialize any record with an id method and find class method, which is the case of classes including Mongoid::Document.
The benefit of including GlobalID::Identification would be e.g. that you can directly use documents with ActiveJob.
I already included the module in my own project and it doesn't seem to pose any problem. It is also pretty straightforward:
lib/mongoid/railtie.rb
module Mongoid::Document include GlobalID::Identification end
- is duplicated by
-
MONGOID-4618 Make Mongoid compatible with GlobalID
- Closed
- is related to
-
MONGOID-4590 Association proxy objects are not correctly compared with === on RHS
- Closed
-
MONGOID-5503 Add GlobalID example in documentation
- Backlog
-
MONGOID-4618 Make Mongoid compatible with GlobalID
- Closed