File tree Expand file tree Collapse file tree 1 file changed +70
-0
lines changed Expand file tree Collapse file tree 1 file changed +70
-0
lines changed Original file line number Diff line number Diff line change
1
+ .. list-table ::
2
+ :header-rows: 1
3
+ :stub-columns: 1
4
+ :class: compatibility-large
5
+ :widths: 20 20 60
6
+
7
+ * - Rails Framework
8
+ - {+odm+} Support
9
+ - Notes
10
+
11
+ * - ``ActionCable ``
12
+ - ✓
13
+ - There is no MongoDB adapter for ``ActionCable ``, but you can
14
+ use any existing adapter, such as the `Redis Adapter
15
+ <{+active-record-docs+}/action_cable_overview.html#redis-adapter> `__,
16
+ alongside {+odm+} models.
17
+
18
+ * - ``ActionMailbox ``
19
+ - *Unsupported *
20
+ - Depends directly on Active Record.
21
+
22
+ * - ``ActionMailer ``
23
+ - ✓
24
+ -
25
+
26
+ * - ``ActionPack ``
27
+ - ✓
28
+ -
29
+
30
+ * - ``ActionText ``
31
+ - *Unsupported *
32
+ - Depends directly on Active Record.
33
+
34
+ * - ``ActionView ``
35
+ - ✓
36
+ -
37
+
38
+ * - ``ActiveJob ``
39
+ - ✓
40
+ - Serialization of BSON and {+odm+} objects works best if you
41
+ explicitly send ``BSON::ObjectId `` values as strings, and
42
+ reconstitute them in the job. For example:
43
+
44
+ .. code-block :: ruby
45
+
46
+ record = Model .find(...)
47
+ MyJob .perform_later(record._id .to_s)
48
+
49
+ class MyJob < ApplicationJob
50
+ def perform (id_as_string )
51
+ record = Model .find(id_as_string)
52
+ # ...
53
+ end
54
+ end
55
+
56
+ * - ``ActiveModel ``
57
+ - ✓
58
+ - The ``Mongoid::Document `` module includes
59
+ ``ActiveModel::Model `` and leverages ``ActiveModel::Validations ``
60
+ for :ref: `mongoid-modeling-validation `.
61
+
62
+ * - ``ActiveStorage ``
63
+ - *Unsupported *
64
+ - Depends directly on Active Record.
65
+
66
+ * - ``ActiveSupport ``
67
+ - ✓
68
+ - The ``Mongoid `` module requires ``ActiveSupport ``.
69
+ ``Mongoid `` uses ``ActiveSupport::TimeWithZone `` for handling
70
+ time values.
You can’t perform that action at this time.
0 commit comments