add validator type accessor

This commit is contained in:
Adam Meehan
2010-08-03 15:07:23 +10:00
parent 7117a5ef22
commit b22a7c41b8
2 changed files with 3 additions and 1 deletions

View File

@@ -4,6 +4,8 @@ module ValidatesTimeliness
class Validator < ActiveModel::EachValidator
include Conversion
attr_reader :type
RESTRICTIONS = {
:is_at => :==,
:before => :<,