3

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?

fregas
  • 3,192
  • 3
  • 25
  • 41

1 Answers1

5

Perhaps this would help you?

Augmenting a model from an external gem

parndt

Community
  • 1
  • 1
parndt
  • 1,873
  • 11
  • 13