Question

What would be the equvivalent of Module#prepend in ruby 1.8?

Was it helpful?

Solution

See alias_method_chain implementation in Rails.

http://codelevy.com/2013/02/26/ruby2.0-vs-alias_method_chain.html

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top