Skip to content

Commit

Permalink
update rails_template.rb for rails 4.x
Browse files Browse the repository at this point in the history
remove the "public/index.html" file only if it exist, rails 4.x don't have this file.
  • Loading branch information
timoschilling committed Aug 24, 2014
1 parent 36edd08 commit 428f802
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/support/rails_template.rb
Expand Up @@ -95,7 +95,7 @@ def set_id
generate 'active_admin:install'

inject_into_file "config/routes.rb", "\n root to: redirect('/admin')", after: /.*::Application.routes.draw do/
remove_file "public/index.html"
remove_file "public/index.html" if File.exists? "public/index.html"

# Devise master doesn't set up its secret key on Rails 4.1
# https://github.com/plataformatec/devise/issues/2554
Expand Down

0 comments on commit 428f802

Please sign in to comment.