Class: Array

Inherits:
Object show all
Defined in:
lib/mongomapper/support.rb

Class Method Summary collapse

Class Method Details

.from_mongo(value) ⇒ Object



10
11
12
# File 'lib/mongomapper/support.rb', line 10

def self.from_mongo(value)
  value || []
end

.to_mongo(value) ⇒ Object



6
7
8
# File 'lib/mongomapper/support.rb', line 6

def self.to_mongo(value)
  value.to_a
end