Rails 3: alias_method_chain still used?

后端 未结 3 586
醉酒成梦
醉酒成梦 2020-11-27 12:21

I was just reading about Gems/Plugin development for Rails 3 and ran across this post that says that alias_method_chain is no longer used. I can see the method is still ther

3条回答
  •  时光说笑
    2020-11-27 13:03

    I see that alias_method_chain is no longer present in Rails 3.0.0. http://api.rubyonrails.org/ doesn't report it and rails console reports it to be undefined local variable or method.

    See Also - https://rails.lighthouseapp.com/projects/8994/tickets/285-alias_method_chain-limits-extensibility#ticket-285-20

    UPDATE: As noted by @ecoologic in comments, alias_method_chain is still present in Rails 3.1.1.

提交回复
热议问题