Sha256: 4461b6c2a2cd912f39da099fee8eebf4824cbcb724fd0d4f8bae9c8adf49a880

Contents?: true

Size: 524 Bytes

Versions: 7

Compression:

Stored size: 524 Bytes

Contents

require 'rails/generators/base'

module Proclaim
	module Generators
		class InstallGenerator < Rails::Generators::Base
			source_root File.expand_path("../templates", __FILE__)

			desc "Creates a Proclaim initializer and mounts Proclaim in routes."

			def install_initializers
				template "initialize_proclaim.rb", "config/initializers/proclaim.rb"
			end

			def mount_in_routes
				route "mount Proclaim::Engine, at: \"/blog\""
			end

			def show_readme
				readme "README" if behavior == :invoke
			end
		end
	end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
proclaim-0.6.6 lib/generators/proclaim/install_generator.rb
proclaim-0.6.5 lib/generators/proclaim/install_generator.rb
proclaim-0.6.4 lib/generators/proclaim/install_generator.rb
proclaim-0.6.3 lib/generators/proclaim/install_generator.rb
proclaim-0.6.2 lib/generators/proclaim/install_generator.rb
proclaim-0.6.1 lib/generators/proclaim/install_generator.rb
proclaim-0.6.0 lib/generators/proclaim/install_generator.rb