mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-22 22:06:45 +00:00
add mongoid comment
This commit is contained in:
parent
90f0c45778
commit
b7fd7c1d60
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user