Class: ComponentGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- ComponentGenerator
- Defined in:
- lib/generators/component_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_component_file ⇒ Object
13 14 15 16 |
# File 'lib/generators/component_generator.rb', line 13 def copy_component_file template "component.rb", File.join(PartialsFx.configuration.components_path, class_path, "#{file_name}_component.rb") template "component.html.erb", File.join(PartialsFx.configuration.components_path, class_path, "_#{file_name}_component.html.erb") end |