Module: Mongoid::Extensions::Set
- Defined in:
- lib/mongoid/extensions/set.rb
Overview
Adds type-casting behavior to Set class.
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#mongoize ⇒ Array | nil
Turn the object from the ruby type we deal with to a Mongo friendly type.
-
#resizable? ⇒ true
Returns whether the object’s size can be changed.
Instance Method Details
#mongoize ⇒ Array | nil
Turn the object from the ruby type we deal with to a Mongo friendly type.
16 17 18 |
# File 'lib/mongoid/extensions/set.rb', line 16 def mongoize ::Set.mongoize(self) end |
#resizable? ⇒ true
Returns whether the object’s size can be changed.
26 27 28 |
# File 'lib/mongoid/extensions/set.rb', line 26 def resizable? true end |