Sha256: d693d4936fbc9b2cdb7c087b9c6adc57fe98ef5160b88267aa689a7511074564

Contents?: true

Size: 366 Bytes

Versions: 5

Compression:

Stored size: 366 Bytes

Contents

class PaulRevereGenerator < Rails::Generator::Base
  desc "Put the javascript and migration in place"
  source_root File.join(File.dirname(__FILE__), "templates")

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
paul_revere-0.1.5 lib/generators/paul_revere/paul_revere_generator.rb
paul_revere-0.1.4 lib/generators/paul_revere/paul_revere_generator.rb
paul_revere-0.1.3 lib/generators/paul_revere/paul_revere_generator.rb
paul_revere-0.1.2 lib/generators/paul_revere/paul_revere_generator.rb
paul_revere-0.1.1 lib/generators/paul_revere/paul_revere_generator.rb