Jacob Burkhart wrote:
> 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.
I am redefining page in the app/models directory of my extension
and in my extension definition I can explicitly load this verison of
page
like this:
load
"#{RADIANT_ROOT}/vendor/extensions/page_attributes/app/models/page.rb"
UGLY!!!!!
but that works...
Shouldn't it just get loaded by default. What do I do to fix this?
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant