Yet again John beats me to the punch and says the same thing I was going
to! ;)
You might also want to make sure that this line is at the top of your
extension file:
require_dependency 'application'
Sean
John W. Long wrote:
> 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
> _______________________________________________
> Radiant mailing list
> Post: [email protected]
> Search: http://radiantcms.org/mailing-list/search/
> Site: http://lists.radiantcms.org/mailman/listinfo/radiant
>
>
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant