It might be better to put your added methods in a module and include them in Page inside the activate method of your extension, like so:

module NewPageMethods
   def foo
      "bar"
   end
end

# in your extension

def activate
   Page.send :include, NewPageMethods
   # ...
end

Sean
Loren Johnson wrote:
class Page < ActiveRecord::Base
Should be:

YourPageClassName < Page

No, I don't want to subclass page, I want to add methods to all pages.

I could directly edit page.rb but I'd like to limit my edits to remain within the folder for my extension.


_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to