Why don't add this?

  def App.create(env = :development)
  end

And in production, you can call App.create(:production) yourself.

// Magnus Holm



On Tue, Aug 24, 2010 at 15:36, David Susco <[email protected]> wrote:
> Not talking about having it recycle (I assume all Camping apps have a
> small carbon footprint).
>
> I'm talking about letting the create method know this is the
> dev/test/prod environment and have it load the appropriate database
> connection info etc.
>
> Any thoughts on this? Having create take an env arguments seems the
> simplest to me.
>
> --
> Dave
> _______________________________________________
> Camping-list mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/camping-list
>
_______________________________________________
Camping-list mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/camping-list

Reply via email to