Class: WaitAMinute::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_initializerObject



9
10
11
# File 'lib/generators/wait_a_minute/install_generator.rb', line 9

def copy_initializer
  template 'initializer.rb', "config/initializers/wait_a_minute.rb"
end

#copy_migrationObject



13
14
15
# File 'lib/generators/wait_a_minute/install_generator.rb', line 13

def copy_migration
  template 'migration.rb', "db/migrate/#{Time.new.strftime("%Y%m%d%H%M%S")}_wait_a_minute_create_wait_a_minute_request_logs.rb"
end