Module: Mongoid::Extensions::Binary
- Defined in:
- lib/mongoid/extensions/binary.rb
Overview
Adds type-casting behavior to BSON::Binary class.
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#mongoize ⇒ BSON::Binary | nil
Turn the object from the ruby type we deal with to a Mongo friendly type.
Instance Method Details
#mongoize ⇒ BSON::Binary | nil
Turn the object from the ruby type we deal with to a Mongo friendly type.
17 18 19 |
# File 'lib/mongoid/extensions/binary.rb', line 17 def mongoize BSON::Binary.mongoize(self) end |