From 7afd944fcc44ea88e06bd7987725dc442d58d31b Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 22 May 2014 14:08:23 -0700 Subject: [PATCH] fix test from 7537057888d2d63c3b6c2019d5828bc445fbd6c9 --- activerecord/lib/active_record/attribute_methods.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/activerecord/lib/active_record/attribute_methods.rb b/activerecord/lib/active_record/attribute_methods.rb index f80552d5af7a..03cf66b5c59b 100644 --- a/activerecord/lib/active_record/attribute_methods.rb +++ b/activerecord/lib/active_record/attribute_methods.rb @@ -161,6 +161,7 @@ def method_missing(method, *args, &block) # :nodoc: # this is probably horribly slow, but should only happen at most once for a given AR class attribute_method.bind(self).call(*args, &block) else + return super unless respond_to_missing?(method, true) send(method, *args, &block) end else