Search code examples
ruby-on-railsrefinerycms

Override a class in rails/refinerycms


I'm using refinery cms and want to override (add a method) to their page class. I've tried doing a Page.class_eval in a file in the initializers directory but it only seems to work on the first page load. after that the method i added disappears. any ideas how to do this?


Solution

  • Perhaps this would help you?

    Augmenting a model from an external gem

    parndt