Restricting plugin to load in the production environment


I am using redhillonrails_core plugin in my application. I want it to be loaded only in development environment and not in the production environment. Can anyone suggest the way out?


Which version of Rails ?

Which method to deploy to production (capistrano) ?

Using Bundler (with a Gemfile) ?


i am using rails 2.3.5

yes i am using capistrano but not using bundler…

I don't remember how to do that without bundler, sorry.

You may consider upgrading to bundler

  Gem Bundler – Manage your Ruby gems

and then checkout "groups" and options like --without

  Gem Bundler – Manage your Ruby gems