Class: Raif::ViewsGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Raif::ViewsGenerator
- Defined in:
- lib/generators/raif/views_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_views ⇒ Object
9 10 11 12 |
# File 'lib/generators/raif/views_generator.rb', line 9 def copy_views directory "conversations", "app/views/raif/conversations" directory "conversation_entries", "app/views/raif/conversation_entries" end |
#success_message ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/generators/raif/views_generator.rb', line 14 def say_status :success, "Raif conversation views have been copied to your application", :green say "\nYou can now customize these views in:" say " app/views/raif/conversations/" say " app/views/raif/conversation_entries/" say "\nNote: These views will now override the default Raif engine views." end |