[Radiant] Can Sessions work when Radiant is run from gem?
John W. Long
ng at johnwlong.com
Fri Jul 20 13:41:07 CDT 2007
David Piehler wrote:
> Current => Radiant from full-source; No caching; Session turned on in
> site_controller.rb
>
> Desired => Radiant from gem; Full caching; Session turned on in config
> or extension
You should be able to make an extension that does this. The activate and
deactivate methods would look something like this:
def activate
SiteController.class_eval { session :on }
end
def deactivate
SiteController.class_eval { session :off }
end
--
John Long
http://wiseheartdesign.com
More information about the Radiant
mailing list