engine/config/initializers/locomotive.rb

8 lines
260 B
Ruby
Raw Normal View History

require 'lib/locomotive.rb'
Locomotive.configure do |config|
2010-04-10 15:25:07 +00:00
config.default_domain = 'example.com'
end
# TODO: embed it in Locomotive
ActionMailer::Base.default_url_options[:host] = Locomotive.config.default_domain + (Rails.env.development? ? ':3000' : '')