class AsyncRequestGenerator
Public Instance Methods
copy_initializer_file()
click to toggle source
# File lib/generators/async_request_generator.rb, line 6 def copy_initializer_file migration_file = 'create_async_request_jobs.rb' now = Time.zone.now.strftime('%Y%m%d%H%M%S') # rubocop:disable Style/FormatStringToken copy_file migration_file, "db/migrate/#{now}_#{migration_file}" config_file = 'async_request.rb' copy_file config_file, "config/initializers/#{config_file}" end