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