Class: ConversationsGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- ConversationsGenerator
- Includes:
- SuperScaffoldBase
- Defined in:
- lib/generators/super_scaffold/conversations/conversations_generator.rb
Instance Method Summary collapse
Instance Method Details
#generate ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/generators/super_scaffold/conversations/conversations_generator.rb', line 14 def generate if defined?(BulletTrain::Conversations) # We add the name of the specific super_scaffolding command that we want to # invoke to the beginning of the argument string. ARGV.unshift "conversations" BulletTrain::SuperScaffolding::Runner.new.run else puts "You must have Conversations installed if you want to use this generator.".red puts "Please refer to the documentation for more information: https://bullettrain.co/docs/conversations" end end |