Permalink
Browse files

redraw routes

  • Loading branch information...
xdite committed Oct 7, 2012
1 parent 47e8086 commit f6a218207a2ab75258610fa39cf5d2ecb68e0fe8
Showing with 19 additions and 1 deletion.
  1. +8 −0 lib/bootstrapers/app_builder.rb
  2. +11 −1 lib/bootstrapers/generators/app_generator.rb
@@ -64,5 +64,13 @@ def setup_stylesheets
concat_file 'import_scss_styles', 'app/assets/stylesheets/application.css.scss'
end
def setup_root_route
route "root :to => 'high_voltage/pages#show', :id => 'welcome'"
end
def remove_routes_comment_lines
replace_in_file 'config/routes.rb', /Application\.routes\.draw do.*end/m, "Application.routes.draw do\nend"
end
end
end
@@ -22,7 +22,9 @@ def bootstrapers_customization
invoke :customize_gemfile
invoke :setup_database
#invoke :configure_app
#invoke :setup_stylesheets
invoke :setup_stylesheets
invoke :remove_routes_comment_lines
invoke :setup_root_route
end
def remove_files_we_dont_need
@@ -85,6 +87,14 @@ def setup_stylesheets
build :setup_stylesheets
end
def remove_routes_comment_lines
build :remove_routes_comment_lines
end
def setup_root_route
build :setup_root_route
end
protected
def get_builder_class

0 comments on commit f6a2182

Please sign in to comment.