Sha256: 7aadb298e639c2c2a2b43c26557271a69e949e5a893b7bb65cbe67e3ccd20677
Contents?: true
Size: 499 Bytes
Versions: 1
Compression:
Stored size: 499 Bytes
Contents
require 'rails/generators/base' class AsyncRequestGenerator < Rails::Generators::Base source_root File.expand_path('../../templates', __FILE__) 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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
async_request-1.0.0 | lib/generators/async_request_generator.rb |