mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-25 07:16:41 +00:00
add validator type accessor
This commit is contained in:
@@ -4,6 +4,8 @@ module ValidatesTimeliness
|
||||
class Validator < ActiveModel::EachValidator
|
||||
include Conversion
|
||||
|
||||
attr_reader :type
|
||||
|
||||
RESTRICTIONS = {
|
||||
:is_at => :==,
|
||||
:before => :<,
|
||||
|
||||
Reference in New Issue
Block a user