mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-22 22:06:45 +00:00
Test model had wrong validation method
This commit is contained in:
parent
e8a96fe9b5
commit
13fcc32a83
@ -71,8 +71,8 @@ end
|
||||
class Employee < ActiveRecord::Base
|
||||
attr_accessor :redefined_birth_date_called
|
||||
validates_date :birth_date, :allow_nil => true
|
||||
validates_date :birth_time, :allow_nil => true
|
||||
validates_date :birth_datetime, :allow_nil => true
|
||||
validates_time :birth_time, :allow_nil => true
|
||||
validates_datetime :birth_datetime, :allow_nil => true
|
||||
|
||||
def birth_date=(value)
|
||||
self.redefined_birth_date_called = true
|
||||
|
||||
Loading…
Reference in New Issue
Block a user