loading different plugins for different environments

hi,

with bundler we can isolate gems for given environments, is there a way of doing something like that also for plugins?

I won’t be able to turn every plugin in a gem to do so (but if that’s the way to go, I’ll put it in my list)…

maybe the rails load process can exclude some paths from loading for given environments? wdyt? makes sense? have you done something similar? how have you solved it?

the main project I’m aiming it’s a rails 2.3.5 one (I know it’s old, but you know enterprises)

tia,

jk

hi, with bundler we can isolate gems for given environments, is there a way of doing something like that also for plugins? I won't be able to turn every plugin in a gem to do so (but if that's the way to go, I'll put it in my list)... maybe the rails load process can exclude some paths from loading for given environments? wdyt? makes sense? have you done something similar? how have you solved it?

Hi,

This is the wrong list to ask a question like this, please ask on the rubyonrails-talk list. However we do have config.plugins which should do everything you need.

the main project I'm aiming it's a rails 2.3.5 one (I know it's old, but you know enterprises)

There have been several security vulnerabilities reported with that release which were fixed subsequently. You need to upgrade, enterprise or not.

oops, yes, i mixed the lists :slight_smile:

thanks koz, will check that

jk