module Phcpresspro class Engine < ::Rails::Engine # UI Dependencies require 'jquery-rails' require 'sass-rails' require 'bootstrap-sass' require 'font-awesome-rails' # Load Image Processing require 'carrierwave' require 'cloudinary' # PHCEngines require 'phcnotifi' require 'phctitleseo' # Security For PHC Use require 'authrocket' # Give Everything a Namespace isolate_namespace Phcpresspro # Load Requried Helper Files config.to_prepare do ApplicationController.helper(ApplicationHelper) Phcnotifi::ApplicationController.helper(ApplicationHelper) Phctitleseo::ApplicationController.helper(ApplicationHelper) end # Auto Mount Plugin initializer "phcpresspro", before: :load_config_initializers do |app| Rails.application.routes.append do mount Phcpresspro::Engine, at: "/" end end # Testing Generator config.generators do |g| g.test_framework :rspec, fixtures: true, view_specs: false, helper_specs: false, routing_specs: false, controller_specs: true, request_specs: false g.fixture_replacement :factory_girl, dir: "spec/factories" end end end