Class: AuditModel::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- AuditModel::Generators::InstallGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/audit_model/install/install_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.next_migration_number(dirname) ⇒ Object
15 16 17 |
# File 'lib/generators/audit_model/install/install_generator.rb', line 15 def self.next_migration_number(dirname) ActiveRecord::Generators::Base.next_migration_number(dirname) end |
Instance Method Details
#copy_initializer ⇒ Object
8 9 10 |
# File 'lib/generators/audit_model/install/install_generator.rb', line 8 def copy_initializer copy_file "audit_model.rb", "config/initializers/audit_model.rb" end |
#copy_migration ⇒ Object
11 12 13 |
# File 'lib/generators/audit_model/install/install_generator.rb', line 11 def copy_migration migration_template "revision.rb", "db/migrate/create_revisions.rb" end |