From 0476ef82357a09bc15cf458291eba59ecbcb0ce0 Mon Sep 17 00:00:00 2001 From: Sean Grove Date: Mon, 21 Mar 2011 03:45:38 -0700 Subject: [PATCH] Add a bushido switch inside locomotive.rb initializer --- config/initializers/locomotive.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/config/initializers/locomotive.rb b/config/initializers/locomotive.rb index 51cc497c..235e3f62 100644 --- a/config/initializers/locomotive.rb +++ b/config/initializers/locomotive.rb @@ -32,6 +32,14 @@ Locomotive.configure do |config| # config.heroku = { :name => '', :login => 'john@doe.net', :password => 'easy' } config.heroku = false + # tell if the application is hosted on Bushido. + # If enabled, there's no further configuration needed. + # Bushido will take care of eveything + # + # Ex: + # config.bushido = true + config.bushido = false + # Locomotive uses the DelayedJob gem for the theme import module. # In case you want to deploy to Heroku, you will have to pay for an extra dyno. # If you do not mind about importing theme without DelayedJob, disable it. @@ -41,5 +49,5 @@ Locomotive.configure do |config| config.default_locale = :en # Configure the e-mail address which will be shown in the DeviseMailer, NotificationMailer, ...etc - config.mailer_sender = 'support@example.com' + config.mailer_sender = ENV['BUSHIDO_DOMAIN'] ? "support@#{ENV['BUSHIDO_DOMAIN']}" : 'support@example.com' end