add mongoid comment

This commit is contained in:
Adam Meehan 2010-09-22 07:09:43 +10:00
parent 90f0c45778
commit b7fd7c1d60

View File

@ -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)