diff options
author | Bin Huang <huangbin88@foxmail.com> | 2014-05-23 14:39:54 +0800 |
---|---|---|
committer | Bin Huang <huangbin88@foxmail.com> | 2014-05-23 14:39:54 +0800 |
commit | 36368eaa1ea778fd2556db482183892324c58b95 (patch) | |
tree | f8822e50d0f0364d5b53e22a679bf41507fc442d /activerecord | |
parent | 9ca4839a1aa369d934f08c9307196db3e19e9592 (diff) | |
download | rails-36368eaa1ea778fd2556db482183892324c58b95.tar.gz rails-36368eaa1ea778fd2556db482183892324c58b95.tar.bz2 rails-36368eaa1ea778fd2556db482183892324c58b95.zip |
Bring the missing parameters back.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/attribute_methods.rb | 6 |
1 files changed, 5 insertions, 1 deletions
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 |