Class: Preview::Generators::ComponentGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Preview::Generators::ComponentGenerator
- Defined in:
- lib/rails/generators/preview/component_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_preview_file ⇒ Object
10 11 12 |
# File 'lib/rails/generators/preview/component_generator.rb', line 10 def create_preview_file template "component_preview.rb", File.join("test/components/previews", class_path, "#{file_name}_component_preview.rb") end |