Class: PageEngineGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- PageEngineGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/page_engine/page_engine_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.next_migration_number(path) ⇒ Object
9 10 11 |
# File 'lib/generators/page_engine/page_engine_generator.rb', line 9 def self.next_migration_number(path) Time.now.utc.strftime("%Y%m%d%H%M%S") end |
Instance Method Details
#install ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/generators/page_engine/page_engine_generator.rb', line 13 def install create_migrations copy_stylesheets copy_javascripts copy_images copy_file 'app/views/layouts/admin.html.haml', 'app/views/layouts/admin.html.haml' end |