Plugins - Environment Check

StarAdd to favorites

Environment Check is a plugin that checks to ensure the application environment RAILS_ENV matches the database environment. In the event that the application environment doesn’t match the database environment (say by accidentally running development against production) an exception is thrown along the lines of:

  Incorrect database 'production'; expected 'development'

The plugin assumes you have a model class named SystemSetting which supports looking up values using standard enumeration-like indexing and that the record containing the value for the database environment is named environment.

Dependencies

  • System Settings (system_settings)—unless you choose to implement the functionality yourself.

Red Hill Consulting

http://www.redhillconsulting.com.au/rails_plugins.html

svn://rubyforge.org/var/svn/redhillonrails/trunk/vendor/plugins/environment_check

Rails' (MIT)

  • Currently 0.0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Misc. Enhancements

Tags

Comments

Add a comment

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?