class Georgia::Generators::InstallGenerator
Public Instance Methods
copy_templates()
click to toggle source
# File lib/generators/georgia/install/install_generator.rb, line 23 def copy_templates copy_file "config/initializers/georgia.rb" copy_file "config/initializers/carrierwave.example.rb" copy_file "app/controllers/pages_controller.rb" end
mount_engine()
click to toggle source
# File lib/generators/georgia/install/install_generator.rb, line 11 def mount_engine # Must be in reverse order to keep priorities route "# root to: 'pages#show', request_path: 'home'" route "# get '*request_path', to: 'pages#show', as: :page" route "mount Ckeditor::Engine => '/ckeditor'" route "mount Georgia::Engine => '/admin'" end
run_migrations()
click to toggle source
# File lib/generators/georgia/install/install_generator.rb, line 19 def run_migrations rake "railties:install:migrations" end
show_readme()
click to toggle source
# File lib/generators/georgia/install/install_generator.rb, line 29 def show_readme readme "README" end