Sha256: 7350d7dc591e91e71156e4eb21491f513d63f142b83083b84aab297bcac94ca3
Contents?: true
Size: 310 Bytes
Versions: 4
Compression:
Stored size: 310 Bytes
Contents
# frozen_string_literal: true module Phlex::Generators class ComponentGenerator < ::Rails::Generators::NamedBase source_root File.expand_path("templates", __dir__) def create_view @path = File.join("app/components", class_path, "#{file_name}.rb") template "component.rb.erb", @path end end end
Version data entries
4 entries across 4 versions & 1 rubygems