lib/mongoo/embedded/array_proxy.rb in mongoo-0.5.4 vs lib/mongoo/embedded/array_proxy.rb in mongoo-0.5.5
- old
+ new
@@ -7,9 +7,10 @@
@array = array
@klass = klass
end
def build(hash, i=nil)
+ return nil if hash.nil?
@klass.new(@doc, hash, i)
end
def raw
@array
\ No newline at end of file