I have a gem that I install as a plugin, I want in development
environment use it from vendor/plugins folder and if it is installed in
system to use the systems gem
But if I use config.gem in environment.rb it raises an error about
missing gem even if it is present in vendor/plugins
I have a gem that I install as a plugin, I want in development
environment use it from vendor/plugins folder and if it is installed in
system to use the systems gem
But if I use config.gem in environment.rb it raises an error about
missing gem even if it is present in vendor/plugins
This is because config.gem is looking for a gem. It won't fall back and check for a plugin if it fails to find a gem. I think your best bet is to use a require statement. It'll check for the plugin and use that if it finds it. If not it will look for the gem.
Someone please correct me if I'm wrong. I've not actually done this since I've only had one or the other in my apps.