spec/support/models/clock.rb in ripple-1.0.0.beta vs spec/support/models/clock.rb in ripple-1.0.0.beta2
- old
+ new
@@ -4,7 +4,7 @@
many :modes
end
class Mode
include Ripple::EmbeddedDocument
- timestamps!
+ timestamps! :index => true, :presence => { :unless => :new? }
end