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.10.0 lib/phcpresspro/engine.rb
phcpresspro-5.9.2 lib/phcpresspro/engine.rb
phcpresspro-5.9.1 lib/phcpresspro/engine.rb
phcpresspro-5.9.0 lib/phcpresspro/engine.rb
phcpresspro-5.8.9 lib/phcpresspro/engine.rb
phcpresspro-5.8.8 lib/phcpresspro/engine.rb
phcpresspro-5.8.7 lib/phcpresspro/engine.rb
phcpresspro-5.8.6 lib/phcpresspro/engine.rb
phcpresspro-5.8.5 lib/phcpresspro/engine.rb
phcpresspro-5.8.4 lib/phcpresspro/engine.rb
phcpresspro-5.8.3 lib/phcpresspro/engine.rb
phcpresspro-5.8.2 lib/phcpresspro/engine.rb
phcpresspro-5.8.1 lib/phcpresspro/engine.rb
phcpresspro-5.8.0 lib/phcpresspro/engine.rb
phcpresspro-5.7.7 lib/phcpresspro/engine.rb
phcpresspro-5.7.6 lib/phcpresspro/engine.rb
phcpresspro-5.7.5 lib/phcpresspro/engine.rb
phcpresspro-5.7.4 lib/phcpresspro/engine.rb
phcpresspro-5.7.3 lib/phcpresspro/engine.rb
phcpresspro-5.7.2 lib/phcpresspro/engine.rb