diff options
author | thedarkone <thedarkone2@gmail.com> | 2013-09-29 18:56:32 +0200 |
---|---|---|
committer | thedarkone <thedarkone2@gmail.com> | 2013-09-29 18:58:50 +0200 |
commit | e9bf87f08e77a457e1b82c2409abcaf4aef5f97c (patch) | |
tree | 01d5b6fc007aa511a2a5ddf092423de198a2647c /actionpack | |
parent | 414d1eaf6cd9333fe0c4123ba8d7157946505a3b (diff) | |
download | rails-e9bf87f08e77a457e1b82c2409abcaf4aef5f97c.tar.gz rails-e9bf87f08e77a457e1b82c2409abcaf4aef5f97c.tar.bz2 rails-e9bf87f08e77a457e1b82c2409abcaf4aef5f97c.zip |
Fix AR#method_missing re-dispatching into overwritten attribute methods.
This was happening when a `super` call in an overwritten attribute method
was triggering a method_missing fallback, because attribute methods
haven't been generated yet.
class Topic < ActiveRecord::Base
def title
# `super` would re-invoke this method if define_attribute_methods
# hasn't been called yet resulting in double '!' appending
super + '!'
end
end
Diffstat (limited to 'actionpack')
0 files changed, 0 insertions, 0 deletions