Sha256: 2ccc8008c93bbcf5354403bac49cda7abb2dc32636ba49cd4084924f56510a03
Contents?: true
Size: 1007 Bytes
Versions: 8
Compression:
Stored size: 1007 Bytes
Contents
module Phcpress class Engine < ::Rails::Engine # Load UI Dependecies require 'jquery-rails' require 'phcnotifi' require 'sass-rails' require 'bootstrap-sass' require 'font-awesome-rails' # Load Image Processing require 'carrierwave' # Give Everything a Namespace isolate_namespace Phcpress # 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 # Load Helper Files config.to_prepare do ApplicationController.helper(ApplicationHelper) ApplicationController.helper(Blog::PostsHelper) ApplicationController.helper(News::PostsHelper) end # Auto Mount Plugin initializer "phcpress", before: :load_config_initializers do |app| Rails.application.routes.append do mount Phcpress::Engine, at: "/" end end end end
Version data entries
8 entries across 8 versions & 1 rubygems