Class: Protocolist::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Protocolist::Generators::InstallGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/protocolist/install/install_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.next_migration_number(dirname) ⇒ Object
:nodoc:
23 24 25 |
# File 'lib/generators/protocolist/install/install_generator.rb', line 23 def self.next_migration_number(dirname) #:nodoc: ActiveRecord::Generators::Base.next_migration_number(dirname) end |
Instance Method Details
#generate_activity_model ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/generators/protocolist/install/install_generator.rb', line 15 def generate_activity_model if model_orm == 'mongoid' && defined?(Mongoid) generate_mongoid_activity_model elsif model_orm == 'active_record' && defined?(ActiveRecord) generate_active_record_activity_model end end |