Class: Rails::Generators::ComponentGenerator
- Inherits:
-
NamedBase
- Object
- NamedBase
- Rails::Generators::ComponentGenerator
- Includes:
- ViewComponent::AbstractGenerator
- Defined in:
- lib/rails/generators/component/component_generator.rb
Instance Method Summary collapse
Methods included from ViewComponent::AbstractGenerator
Instance Method Details
#create_component_file ⇒ Object
24 25 26 |
# File 'lib/rails/generators/component/component_generator.rb', line 24 def create_component_file template "component.rb", File.join(component_path, class_path, "#{file_name}#{[:skip_suffix] ? "" : "_component"}.rb") end |