lib/generators/goldencobra/install_generator.rb in goldencobra-1.4.0 vs lib/generators/goldencobra/install_generator.rb in goldencobra-1.4.27
- old
+ new
@@ -1,5 +1,7 @@
+# encoding: utf-8
+
require 'securerandom'
module Goldencobra
module Generators
class InstallGenerator < Rails::Generators::Base
@@ -87,9 +89,10 @@
remove_file "app/assets/stylesheets/application.css"
directory "../templates/assets", "app/assets"
directory "../templates/views", "app/views"
template '../templates/extend_goldencobra_articles_controller.rb', 'app/controllers/extend_goldencobra_articles_controller.rb'
remove_file "public/index.html"
+ copy_file '../templates/robots.txt', 'public/robots.txt'
end
def setup_routes
route "mount Goldencobra::Engine => '/'"
route "devise_for :users, ActiveAdmin::Devise.config"