Sha256: 20f1d386ac7768e5039cf6dfe5be905249104ba14498fec9f170c75ff6f66a3e

Contents?: true

Size: 474 Bytes

Versions: 3

Compression:

Stored size: 474 Bytes

Contents

require 'rails/generators/active_record/migration'

class PaulRevereGenerator < Rails::Generators::Base
  include Rails::Generators::Migration
  extend ActiveRecord::Generators::Migration

  desc "Put the javascript and migration in place"
  source_root File.join(File.dirname(__FILE__), "templates")

  def install
    copy_file "announcements.js", "public/javascripts/announcements.js"
    migration_template "migration.rb", "db/migrate/create_announcements.rb"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
paul_revere-1.0 lib/generators/paul_revere/paul_revere_generator.rb
paul_revere-0.2.1 lib/generators/paul_revere/paul_revere_generator.rb
paul_revere-0.2.0 lib/generators/paul_revere/paul_revere_generator.rb