aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-05-23 15:23:12 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-05-23 15:23:12 -0300
commita6f55fe257512731d7f3f41976648d99e9ec95be (patch)
treed05bbfeb08def6540fda8168e1f033c333fe3030 /activerecord
parent93ae747c597f988b44d80dda16eb44eef1aecd50 (diff)
parent36368eaa1ea778fd2556db482183892324c58b95 (diff)
downloadrails-a6f55fe257512731d7f3f41976648d99e9ec95be.tar.gz
rails-a6f55fe257512731d7f3f41976648d99e9ec95be.tar.bz2
rails-a6f55fe257512731d7f3f41976648d99e9ec95be.zip
Merge pull request #15261 from hbin/missing_parameters
Bring the missing parameters back.
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/attribute_methods.rb6
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