Sha256: 2b4a5b0a02cd3da6cefb8113f1405c156a4268c2a54d0e875ad0dc3a6d782b23
Contents?: true
Size: 590 Bytes
Versions: 6
Compression:
Stored size: 590 Bytes
Contents
module Fastui class InstallGenerator < ::Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) desc "Fastui installation generator" def copy_config_file template "fastui_config.erb", "config/initializers/fastui_config.rb" end def copy_migrations rake("fastui:install:migrations") end def insert_engine_routes route %( mount Fastui::Engine => '/fastui' ) end def remove_index_html remove_file 'public/index.html' end def show_readme readme '../USAGE' end end end
Version data entries
6 entries across 6 versions & 1 rubygems