Require bushido files and enable support if needed.

This commit is contained in:
Sean Grove 2011-03-21 03:33:17 -07:00
parent b70685a2bd
commit 89758570f8
3 changed files with 8 additions and 1 deletions

View File

@ -9,6 +9,7 @@ require 'locomotive/liquid'
require 'locomotive/mongoid'
require 'locomotive/carrierwave'
require 'locomotive/heroku'
require 'locomotive/bushido'
require 'locomotive/custom_fields'
require 'locomotive/httparty'
require 'locomotive/inherited_resources'
@ -24,6 +25,7 @@ require 'locomotive/session_store'
module Locomotive
include Locomotive::Heroku
include Locomotive::Bushido
class << self
attr_accessor :config
@ -51,9 +53,12 @@ module Locomotive
:key => Locomotive.config.cookie_key
}
# Heroku support
# Hosting-platform support
self.enable_heroku if self.heroku?
# Bushido support
self.enable_bushido if self.bushido?
# Devise
Devise.mailer_sender = self.config.mailer_sender

View File

@ -11,6 +11,7 @@ module Locomotive
:cookie_key => '_locomotive_session',
:enable_logs => false,
:heroku => false,
:bushido => false,
:delayed_job => true,
:default_locale => :en,
:mailer_sender => 'support@example.com'

View File

@ -15,6 +15,7 @@ require 'custom_fields'
require 'mimetype_fu'
require 'actionmailer_with_request'
require 'heroku'
require 'bushido'
require 'httparty'
require 'redcloth'
require 'delayed_job_mongoid'