Sha256: f7bc8382fe8158d39bc5e23b66fa53acdd48186e1eafb0959c6c008c8d6b759f

Contents?: true

Size: 1.35 KB

Versions: 45

Compression:

Stored size: 1.35 KB

Contents

module Phcpresspro
	class Engine < ::Rails::Engine

		# Load Security
		require 'phcaccountspro'
		require 'authrocket'
		require 'paper_trail'

		# Main Dependencies
		require 'phcadmin2'
		require 'phcaccountspro'
		require 'phcnotifi'
		require 'phctitleseo'

		# UI Dependencies
		require 'jquery-rails'
		require 'jquery-ui-rails'
		require 'sass-rails'
		require 'bootstrap-sass'
		require 'font-awesome-rails'
		require 'gravtastic'

		# API Dependencies
		require 'rabl'
		require 'oj'
		require 'responders'

		# Load Image Processing
		require 'carrierwave'
		require 'cloudinary'

		# 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

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
phcpresspro-5.7.1 lib/phcpresspro/engine.rb
phcpresspro-5.7.0 lib/phcpresspro/engine.rb
phcpresspro-5.6.2 lib/phcpresspro/engine.rb
phcpresspro-5.6.1 lib/phcpresspro/engine.rb
phcpresspro-5.6.0 lib/phcpresspro/engine.rb
phcpresspro-5.5.8 lib/phcpresspro/engine.rb
phcpresspro-5.5.7 lib/phcpresspro/engine.rb
phcpresspro-5.5.6 lib/phcpresspro/engine.rb
phcpresspro-5.5.5 lib/phcpresspro/engine.rb
phcpresspro-5.5.4 lib/phcpresspro/engine.rb
phcpresspro-5.5.3 lib/phcpresspro/engine.rb
phcpresspro-5.5.2 lib/phcpresspro/engine.rb
phcpresspro-5.5.1 lib/phcpresspro/engine.rb
phcpresspro-5.5.0 lib/phcpresspro/engine.rb
phcpresspro-5.4.2 lib/phcpresspro/engine.rb
phcpresspro-5.4.1 lib/phcpresspro/engine.rb
phcpresspro-5.4.0 lib/phcpresspro/engine.rb
phcpresspro-5.3.4 lib/phcpresspro/engine.rb
phcpresspro-5.3.3 lib/phcpresspro/engine.rb
phcpresspro-5.3.2 lib/phcpresspro/engine.rb