diff --git a/spec/support/test_model.rb b/spec/support/test_model.rb
index <HASH>..<HASH> 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
Update TextModel method_missing with current ActiveModel methods