Sha256: edc501b06e7d550b05221df30814d361e241f4e3b5959ded8aa3cbabf3e25793
Contents?: true
Size: 343 Bytes
Versions: 2
Compression:
Stored size: 343 Bytes
Contents
require 'rails/generators/base' class AsyncRequestGenerator < Rails::Generators::Base source_root File.expand_path('../../templates', __FILE__) def copy_initializer_file file_name = 'create_async_request_jobs.rb' now = DateTime.current.strftime('%Y%m%d%H%M%S') copy_file file_name, "db/migrate/#{now}_#{file_name}" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
async_request-0.0.7 | lib/generators/async_request_generator.rb |
async_request-0.0.6 | lib/generators/async_request_generator.rb |