Sha256: 1251ab395c4bf192b5f18c02f99638cccb0a185a21e9c823c72b4145a09bc267
Contents?: true
Size: 1.28 KB
Versions: 1
Compression:
Stored size: 1.28 KB
Contents
# Load Required Dependencies require 'mtdevise/active_record_extensions' require 'mtdevise/scoped_to' # Data and Accounts require 'devise' require 'houser' require 'simple_token_authentication' # Frontend & UI require 'jquery-rails' require 'sass-rails' require 'bootstrap-sass' require 'font-awesome-rails' require 'gravtastic' require 'phctitleseo' require 'phcnotifi' module Mtdevise class Engine < ::Rails::Engine #Isolate Name isolate_namespace Mtdevise # Houser Gem initializer 'mtdevise.middleware.houser' do Rails.application.config.middleware.use Houser::Middleware, :class_name => 'Mtdevise::Account' end # Testing and Rspec config.generators do |g| g.test_framework :rspec, :view_specs => false end config.to_prepare do root = Mtdevise::Engine.root extenders_path = root + "app/extenders/**/*.rb" Dir.glob(extenders_path) do |file| Rails.configuration.cache_classes ? require(file) : load(file) end end # Load Helper Files config.to_prepare do ApplicationController.helper(ApplicationHelper) Phcnotifi::ApplicationController.helper(ApplicationHelper) Phctitleseo::ApplicationController.helper(ApplicationHelper) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mtdevise-5.0.1 | lib/mtdevise/engine.rb |