From b7fd7c1d60194951630eb95b31077c66f1366d44 Mon Sep 17 00:00:00 2001 From: Adam Meehan Date: Wed, 22 Sep 2010 07:09:43 +1000 Subject: [PATCH] add mongoid comment --- lib/validates_timeliness/orm/mongoid.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/validates_timeliness/orm/mongoid.rb b/lib/validates_timeliness/orm/mongoid.rb index 5bc0248..18da414 100644 --- a/lib/validates_timeliness/orm/mongoid.rb +++ b/lib/validates_timeliness/orm/mongoid.rb @@ -3,6 +3,8 @@ module ValidatesTimeliness module Mongoid extend ActiveSupport::Concern # You need define the fields before you define the validations. + # It is best to use the plugin parser to avoid errors on a bad + # field value in Mongoid. Parser will return nil rather than error. module ClassMethods def timeliness_validation_for(attr_names, type)