mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-22 22:06:45 +00:00
not a fix but stops stack recursion problem
This commit is contained in:
parent
973090df85
commit
7d006bd3bd
@ -48,7 +48,7 @@ module TestModel
|
||||
end
|
||||
|
||||
def method_missing(method_id, *args, &block)
|
||||
if match_attribute_method?(method_id.to_s)
|
||||
if attribute_method?(method_id.to_s)
|
||||
self.class.define_attribute_methods self.class.model_attributes.keys
|
||||
send(method_id, *args, &block)
|
||||
else
|
||||
|
||||
Loading…
Reference in New Issue
Block a user