Sha256: ce1c67608976ef3ec9f18a6654f6c1f8beb007e66d5b6d8fb7e6d100c0969e69

Contents?: true

Size: 1.14 KB

Versions: 16

Compression:

Stored size: 1.14 KB

Contents

module Phcpress
	class Engine < ::Rails::Engine

		# Load UI Dependecies
		require 'jquery-rails'
		require 'phcnotifi'
		require 'phctitleseo'

		require 'sass-rails'
		require 'bootstrap-sass'
		require 'font-awesome-rails'
		
		# Load Image Processing
		require 'carrierwave'
		require 'cloudinary'

		# UI Dependencies
		require 'summernote-rails'
		require 'codemirror-rails'

		# Give Everything a Namespace
		isolate_namespace Phcpress

		# Load Requried Helper Files
		config.to_prepare do
			ApplicationController.helper(ApplicationHelper)
			Phcnotifi::ApplicationController.helper(ApplicationHelper)
			Phctitleseo::ApplicationController.helper(ApplicationHelper)
		end

		# Auto Mount Plugin
		initializer "phcpress", before: :load_config_initializers do |app|
			Rails.application.routes.append do
				mount Phcpress::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

16 entries across 16 versions & 1 rubygems

Version Path
phcpress-6.2.0 lib/phcpress/engine.rb
phcpress-6.1.3 lib/phcpress/engine.rb
phcpress-6.1.1 lib/phcpress/engine.rb
phcpress-6.1.0 lib/phcpress/engine.rb
phcpress-6.0.0 lib/phcpress/engine.rb
phcpress-5.3.9 lib/phcpress/engine.rb
phcpress-5.3.8 lib/phcpress/engine.rb
phcpress-5.3.7 lib/phcpress/engine.rb
phcpress-5.3.6 lib/phcpress/engine.rb
phcpress-5.3.5 lib/phcpress/engine.rb
phcpress-5.3.4 lib/phcpress/engine.rb
phcpress-5.3.3 lib/phcpress/engine.rb
phcpress-5.3.2 lib/phcpress/engine.rb
phcpress-5.3.0 lib/phcpress/engine.rb
phcpress-5.2.1 lib/phcpress/engine.rb
phcpress-5.2.0 lib/phcpress/engine.rb