Sha256: 1f2c4afdf3e8bece399d25c4a3ddde7063f38eed956ab1af5840990f32607e35

Contents?: true

Size: 300 Bytes

Versions: 13

Compression:

Stored size: 300 Bytes

Contents

# frozen_string_literal: true

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

		def create_view
			@path = File.join("app/views", class_path, "#{file_name}_view.rb")
			template "view.rb.erb", @path
		end
	end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
phlex-rails-1.2.2 lib/generators/phlex/view/view_generator.rb
phlex-rails-1.2.1 lib/generators/phlex/view/view_generator.rb
phlex-rails-1.2.0 lib/generators/phlex/view/view_generator.rb
phlex-rails-1.1.2 lib/generators/phlex/view/view_generator.rb
phlex-rails-1.1.1 lib/generators/phlex/view/view_generator.rb
phlex-rails-1.1.0 lib/generators/phlex/view/view_generator.rb
phlex-rails-1.0.0 lib/generators/phlex/view/view_generator.rb
phlex-rails-0.10.0 lib/generators/phlex/view/view_generator.rb
phlex-rails-0.8.1 lib/generators/phlex/view/view_generator.rb
phlex-rails-0.9.0 lib/generators/phlex/view/view_generator.rb
phlex-rails-0.8.0 lib/generators/phlex/view/view_generator.rb
phlex-rails-0.7.1 lib/generators/phlex/view/view_generator.rb
phlex-rails-0.7.0 lib/generators/phlex/view/view_generator.rb