Class: ViewComponent::ScopedStyles::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- ViewComponent::ScopedStyles::Generators::InstallGenerator
- Defined in:
- lib/generators/view_component/scoped_styles/install_generator.rb
Overview
Installs config/initializers/view_component_scoped_styles.rb with defaults from Configuration.
bin/rails generate view_component:scoped_styles:install
Instance Method Summary collapse
Instance Method Details
#copy_initializer ⇒ Object
18 19 20 21 |
# File 'lib/generators/view_component/scoped_styles/install_generator.rb', line 18 def copy_initializer template "view_component_scoped_styles.rb.tt", "config/initializers/view_component_scoped_styles.rb" end |