Class: RailsTurboFlash::Generators::ViewsGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- RailsTurboFlash::Generators::ViewsGenerator
- Defined in:
- lib/generators/rails_turbo_flash/views_generator.rb
Instance Method Summary collapse
Instance Method Details
#install ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/generators/rails_turbo_flash/views_generator.rb', line 8 def install if defined?(Haml) copy_file('_flash_message.html.haml', 'app/views/turbo_flash/_flash_message.html.haml') else copy_file('_flash_message.html.erb', 'app/views/turbo_flash/_flash_message.html.erb') end end |