Sha256: cf87338815730bc3942edc41a0e82143497742416c266df5f9ea3e1ada17ae31
Contents?: true
Size: 590 Bytes
Versions: 11
Compression:
Stored size: 590 Bytes
Contents
class PufferPages::InstallGenerator < Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) def generate_assets directory 'puffer', 'public/puffer' end def generate_migrations directory 'migrate', 'db/migrate' end def generate_controllers directory 'controllers', 'app/controllers/admin' end def generate_config copy_file 'puffer_pages.rb', 'config/initializers/puffer_pages.rb' end def generate_routes route "namespace :admin do\n resources :pages\n resources :layouts\n resources :snippets\n end" end end
Version data entries
11 entries across 11 versions & 1 rubygems