Search code examples
ruby-on-railsruby-on-rails-plugins

Rails: How to disable a plugin from loading during startup


Is there anyway I can detect a exception and stop a plugin from loading in Rails?

Thanks,
Sivakumar.


Solution

  • Use the config.plugins option on your config/environment.rb to choose which plugins are loaded.

    read more here: http://guides.rubyonrails.org/configuring.html#rails-general-configuration