From 8dc191a4cd7817653f1349d6b251023f94ba534e Mon Sep 17 00:00:00 2001 From: Adam Meehan Date: Tue, 15 May 2018 19:26:54 +1000 Subject: [PATCH] Update TextModel method_missing with current ActiveModel methods --- 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 4f04820..b8b15dc 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 attribute_method?(method_id.to_s) + if !matched_attribute_method(method_id.to_s).nil? self.class.define_attribute_methods self.class.model_attributes.keys send(method_id, *args, &block) else