From 7d006bd3bd2d1078d336d13531c4682c806083a5 Mon Sep 17 00:00:00 2001 From: Adam Meehan Date: Tue, 15 May 2018 17:22:43 +1000 Subject: [PATCH] not a fix but stops stack recursion problem --- spec/support/test_model.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/support/test_model.rb b/spec/support/test_model.rb index e594b3c..4f04820 100644 --- a/spec/support/test_model.rb +++ b/spec/support/test_model.rb @@ -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