Class: PaulRevereGenerator

Inherits:
Rails::Generator::Base
  • Object
show all
Defined in:
lib/generators/paul_revere/paul_revere_generator.rb

Instance Method Summary collapse

Instance Method Details

#installObject



5
6
7
8
9
# File 'lib/generators/paul_revere/paul_revere_generator.rb', line 5

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