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