diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-23 15:23:12 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-23 15:23:12 -0300 |
commit | a6f55fe257512731d7f3f41976648d99e9ec95be (patch) | |
tree | d05bbfeb08def6540fda8168e1f033c333fe3030 | |
parent | 93ae747c597f988b44d80dda16eb44eef1aecd50 (diff) | |
parent | 36368eaa1ea778fd2556db482183892324c58b95 (diff) | |
download | rails-a6f55fe257512731d7f3f41976648d99e9ec95be.tar.gz rails-a6f55fe257512731d7f3f41976648d99e9ec95be.tar.bz2 rails-a6f55fe257512731d7f3f41976648d99e9ec95be.zip |
Merge pull request #15261 from hbin/missing_parameters
Bring the missing parameters back.
-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 6ec74220ad..a0a0214eae 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 |