Class: ModalStack::Generators::ViewsGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- ModalStack::Generators::ViewsGenerator
- Defined in:
- lib/generators/modal_stack/views/views_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_views ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/generators/modal_stack/views/views_generator.rb', line 16 def copy_views if [:panel] copy_panel elsif [:dialog] copy_dialog else copy_panel copy_dialog end end |
#show_readme ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/generators/modal_stack/views/views_generator.rb', line 27 def show_readme say <<~TXT, :green modal_stack views ejected to app/views/modal_stack/. Edit the copied partials to override the default HTML structure. The `wrapper_attrs` / `dialog_attrs` locals carry the required data attributes — keep them on the root element so the JS runtime continues to work. TXT end |