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 开发者_如何学Pythonthe method i added disappears. any ideas how to do this?
Perhaps this would help you?
Augmenting a model from an external gem
parndt
精彩评论