There is probably a simple reason for this, but haven't figured it out yet.
If you alias_method destroy on an AR model and then call that method from a module included destroy, it works fine in Ruby 1.9.3 but not Ruby 2.0.0-p247.
The workaround is to call super instead. I'm curious as to why this depends on the Ruby version.
Here is the project to reproduce. I know it is a fringe usage case:
https://github.com/garysweaver/fun_20131206
Thanks
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-co...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
Visit this group at http://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/groups/opt_out.