开发者

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 开发者_如何学Pythonthe method i added disappears. any ideas how to do this?


Perhaps this would help you?

Augmenting a model from an external gem

parndt

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜