All,

I've run into a few cases recently where I have environments that are
nearly (or totally) identical, except for the database. For example, I
have a "live" environment locally where I pull production data for
load testing or triage, and I generally want it to behave like
"development". Similar situations occur for continuous-integration or
staging boxen that should look an awful lot like development (or
production), but not quite.

In order to make these sorts of situations pleasantly
self-documenting, I've patched the Initializer with a little helper:

# config/environments/live.rb
acts_like :development

Is this a patchworthy feature? I'd be happy to submit my change and
tests if other people see any value here. As this changes Rails'
initalization process, it's a bit difficult to elegantly expose as a
plugin.


~ j.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to