Sha256: 3458dc4c66b746d63c7913866ed532bd498b7d7d50b62c338a7c5eb620055a9d

Contents?: true

Size: 1.03 KB

Versions: 24

Compression:

Stored size: 1.03 KB

Contents

module Phcpress
	class Engine < ::Rails::Engine

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

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

		# Give Everything a Namespace
		isolate_namespace Phcpress

		# Load Requried Helper Files
		config.to_prepare do
			ApplicationController.helper(ApplicationHelper)
			Phcnotifi::ApplicationController.helper(ApplicationHelper)
			Phctitler::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

24 entries across 24 versions & 1 rubygems

Version Path
phcpress-3.7.9 lib/phcpress/engine.rb
phcpress-3.7.8 lib/phcpress/engine.rb
phcpress-3.7.7 lib/phcpress/engine.rb
phcpress-3.7.6 lib/phcpress/engine.rb
phcpress-3.7.5 lib/phcpress/engine.rb
phcpress-3.7.0 lib/phcpress/engine.rb
phcpress-3.6.1 lib/phcpress/engine.rb
phcpress-3.6.0 lib/phcpress/engine.rb
phcpress-3.5.6 lib/phcpress/engine.rb
phcpress-3.5.5 lib/phcpress/engine.rb
phcpress-3.5.0 lib/phcpress/engine.rb
phcpress-3.0.1 lib/phcpress/engine.rb
phcpress-2.9.5 lib/phcpress/engine.rb
phcpress-2.9.1 lib/phcpress/engine.rb
phcpress-2.9.0 lib/phcpress/engine.rb
phcpress-2.8.13 lib/phcpress/engine.rb
phcpress-2.8.12 lib/phcpress/engine.rb
phcpress-2.8.11 lib/phcpress/engine.rb
phcpress-2.8.10 lib/phcpress/engine.rb
phcpress-2.8.9 lib/phcpress/engine.rb