Sha256: f12d82c8121eae34ef43eb0d4e0e2b446dac2285322002c9fd3d379b76f14727

Contents?: true

Size: 296 Bytes

Versions: 18

Compression:

Stored size: 296 Bytes

Contents

# frozen_string_literal: true

module Phlex
	module Generators
		class PageGenerator < ::Rails::Generators::NamedBase
			source_root File.expand_path("templates", __dir__)

			def create_view
				template "page.rb.erb", File.join("app/views", class_path, "#{file_name}.rb")
			end
		end
	end
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
phlex-rails-0.6.1 lib/generators/phlex/page/page_generator.rb
phlex-rails-0.6.0 lib/generators/phlex/page/page_generator.rb
phlex-rails-0.5.1 lib/generators/phlex/page/page_generator.rb
phlex-rails-0.5.0 lib/generators/phlex/page/page_generator.rb
phlex-rails-0.4.2 lib/generators/phlex/page/page_generator.rb
phlex-rails-0.4.1 lib/generators/phlex/page/page_generator.rb
phlex-rails-0.4.0 lib/generators/phlex/page/page_generator.rb
phlex-rails-0.3.2 lib/generators/phlex/page/page_generator.rb
phlex-rails-0.3.1 lib/generators/phlex/page/page_generator.rb
phlex-rails-0.3.0 lib/generators/phlex/page/page_generator.rb
phlex-rails-0.2.2 lib/generators/phlex/page/page_generator.rb
phlex-rails-0.2.1 lib/generators/phlex/page/page_generator.rb
phlex-rails-0.2.0 lib/generators/phlex/page/page_generator.rb
phlex-0.5.3 lib/generators/phlex/page/page_generator.rb
phlex-0.5.2 lib/generators/phlex/page/page_generator.rb
phlex-0.5.1 lib/generators/phlex/page/page_generator.rb
phlex-0.5.0 lib/generators/phlex/page/page_generator.rb
phlex-0.4.0 lib/generators/phlex/page/page_generator.rb