mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-22 22:06:45 +00:00
Set @timeliness_methods_generated = false on undefined
This commit is contained in:
parent
cb3ac8d445
commit
32f92cc885
@ -53,7 +53,7 @@ module ValidatesTimeliness
|
|||||||
generated_timeliness_methods.synchronize do
|
generated_timeliness_methods.synchronize do
|
||||||
return unless @timeliness_methods_generated
|
return unless @timeliness_methods_generated
|
||||||
undefine_timeliness_attribute_methods
|
undefine_timeliness_attribute_methods
|
||||||
@timeliness_methods_generated = true
|
@timeliness_methods_generated = false
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user