From 36368eaa1ea778fd2556db482183892324c58b95 Mon Sep 17 00:00:00 2001 From: Bin Huang Date: Fri, 23 May 2014 14:39:54 +0800 Subject: [PATCH] Bring the missing parameters back. --- activerecord/lib/active_record/attribute_methods.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/activerecord/lib/active_record/attribute_methods.rb b/activerecord/lib/active_record/attribute_methods.rb index 6c2403d87e..c433e480d1 100644 --- a/activerecord/lib/active_record/attribute_methods.rb +++ b/activerecord/lib/active_record/attribute_methods.rb @@ -48,7 +48,11 @@ module ActiveRecord end private - def method_body; raise NotImplementedError; end + + # Override this method in the subclasses for method body. + def method_body(method_name, const_name) + raise NotImplementedError, "Subclasses must implement a method_body(method_name, const_name) method." + end end module ClassMethods