Ok, I've got a weird one here. In an extension, I'm attempting to add a method or two to SiteController. I do this in the extension activate method like:

 def activate
   SiteController.send :include, SiteControllerMods
 end

Then, in /lib/site_controller_mods.rb I define a module to add methods, like:

 module SiteControllerMods
 end

Even without adding any methods, Radiant doesn't like this -- the built-in SiteController specs start to fail left and right. I've used this approach in the past and it worked just fine -- what changed with 0.6.6?

Could this be something to do with Rails 2.0? Or maybe a conflict with rSpec?

Is there a better approach?

-Chris
_______________________________________________
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