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,10 +72,9 @@ module ValidatesTimeliness
|
|||||||
end
|
end
|
||||||
|
|
||||||
def attribute_raw_value(record, attr_name)
|
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)
|
record._timeliness_raw_value_for(attr_name)
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
def timezone_aware?(record, attr_name)
|
def timezone_aware?(record, attr_name)
|
||||||
record.class.respond_to?(:timeliness_attribute_timezone_aware?) &&
|
record.class.respond_to?(:timeliness_attribute_timezone_aware?) &&
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user