Class: Erb::Generators::ComponentGenerator
- Inherits:
-
Base
- Object
- Base
- Erb::Generators::ComponentGenerator
- Defined in:
- lib/rails/generators/erb/component_generator.rb
Direct Known Subclasses
Haml::Generators::ComponentGenerator, Slim::Generators::ComponentGenerator
Instance Method Summary collapse
Instance Method Details
#copy_view_file ⇒ Object
12 13 14 15 16 |
# File 'lib/rails/generators/erb/component_generator.rb', line 12 def copy_view_file unless ["inline"] template "component.html.erb", destination end end |