• T
    Fix AR#method_missing re-dispatching into overwritten attribute methods. · e9bf87f0
    thedarkone 提交于
    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
    e9bf87f0
attribute_methods_test.rb 26.8 KB