Override class in rails / refinerycms

I am using refms cms and want to override (add method) to my class. I tried to make the page.class_eval file in a file in the initializer directory, but it seems to work only when loading the first page. after that, the method that I added disappears. any ideas how to do this?

+3
source share
1 answer

Perhaps this will help you?

Adding an external gem model

parndt

+5
source

Source: https://habr.com/ru/post/1784424/


All Articles