-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
-
Labels:
given a model like:
model Foo
include Mongoid
field :bar, :type => Array
field :baz, :type => Hash
end
Foo.new.bar should_equal Array.new
Foo.new.baz should_equal Hash.new
So that I don't have to remember to initialize when i access the setter for the first time.