Require bushido files and enable support if needed.
This commit is contained in:
parent
b70685a2bd
commit
89758570f8
@ -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
|
||||
|
||||
|
@ -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'
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user