Skip to content

Instantly share code, notes, and snippets.

@erik-megarad
Created December 29, 2009 16:42
Show Gist options
  • Save erik-megarad/265416 to your computer and use it in GitHub Desktop.
Save erik-megarad/265416 to your computer and use it in GitHub Desktop.
# Can I get a "FUCK YEAH?"
Mongoid.environments do
@defaults = {:adapter => :mongo, :host => :localhost}
environment :development do
self.settings.merge!(@defaults)
database :fanboy_dev
end
environment :production do
self.settings.merge!(@defaults)
host "db.mongohq.com"
username :user
pass :pass
database :fanboy
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment