Sha256: c8f8330f1977724d960b35a0380f0adda3c09463f517f3ada7325a491fa1b665
Contents?: true
Size: 1.25 KB
Versions: 5
Compression:
Stored size: 1.25 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
5 entries across 5 versions & 1 rubygems