Class: Communify::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Communify::Generators::InstallGenerator
- Defined in:
- lib/communify/generators/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_communify_log_model ⇒ Object
16 17 18 |
# File 'lib/communify/generators/install/install_generator.rb', line 16 def copy_communify_log_model template "communify_log_model.erb", "app/models/communify_log.rb" end |
#copy_migration ⇒ Object
12 13 14 |
# File 'lib/communify/generators/install/install_generator.rb', line 12 def copy_migration template "communify_log_migration.erb", "db/migrate/#{DateTime.now.to_formatted_s(:number)}_create_communify_logs.rb", migration_version: migration_version end |