mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-22 22:06:45 +00:00
tiny consistency change
This commit is contained in:
parent
509336e080
commit
b09f937688
@ -72,9 +72,8 @@ module ValidatesTimeliness
|
||||
end
|
||||
|
||||
def attribute_raw_value(record, attr_name)
|
||||
if record.respond_to?(:_timeliness_raw_value_for)
|
||||
record.respond_to?(:_timeliness_raw_value_for) &&
|
||||
record._timeliness_raw_value_for(attr_name)
|
||||
end
|
||||
end
|
||||
|
||||
def timezone_aware?(record, attr_name)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user