engine/config/initializers/locomotive.rb

16 lines
487 B
Ruby
Raw Normal View History

require 'lib/locomotive.rb'
2010-04-25 00:33:38 +00:00
require 'lib/core_ext.rb'
Locomotive.configure do |config|
2010-04-10 15:25:07 +00:00
config.default_domain = 'example.com'
config.lastest_items_nb = 5
end
# TODO: embed them in Locomotive right after configure
2010-04-22 23:52:11 +00:00
ActionMailer::Base.default_url_options[:host] = Locomotive.config.default_domain + (Rails.env.development? ? ':3000' : '')
Rails.application.config.session_store :cookie_store, {
:key => '_locomotive_session',
:domain => ".#{Locomotive.config.default_domain}"
}