Hi,
I'm trying to extend the Page module with acts_as_taggable, I added a plugin under the vendor part with the taggable.rb file and the following files:

page_ex.rb:
class Page
  acts_as_taggable
end

and init.rb:
require_dependency 'page'
require 'taggable'
require 'page_ex.rb'

This works in perfectly in production, but breaks in development, in development the first call to an act_as_taggable fucntion works, but any call after that gives errors like this:
NoMethodError (undefined method `tag' for #<Page:0x3878520>)

I know this is a result of class caching and reloading of the class data (or at least I assume this is the reason).

Any ideas of how to solve this in devlopment?

Dror


_______________________________________________
Radiant mailing list
[email protected]
http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to