[Radiant] Tying into SiteController - Specs Failing

Chris Parrish chris.parrish-forummail at swankinnovations.com
Sat May 10 11:50:00 CDT 2008


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


More information about the Radiant mailing list