How to properly monkey-patch a Ruby Class in Ruby on Rails?
Sometimes, when we use an existing Ruby Class from a third-part gem, we need to monkey-patch it to fit our project’s needs. Will you use class_eval or Module#prepend ? Hint: Not the first one :)
Post a comment