Class: Raif::ViewsGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/raif/views_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_viewsObject



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_messageObject



14
15
16
17
18
19
20
# File 'lib/generators/raif/views_generator.rb', line 14

def success_message
  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