Sha256: dac0348493c0352f980553d54b5c14e77cadf8802e74a837fbb551517cd10267
Contents?: true
Size: 339 Bytes
Versions: 2
Compression:
Stored size: 339 Bytes
Contents
require 'rails/generators' class AfterpartyGenerator < Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) def install copy_file "jobs_migration.rb", "db/migrate/#{Time.now.strftime('%Y%m%d%H%M%S')}_create_afterparty_jobs.rb" copy_file "initializer.rb", "config/initializers/afterparty.rb" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
afterparty-0.1.1 | lib/generators/afterparty_generator.rb |
afterparty-0.1.0 | lib/generators/afterparty_generator.rb |