templates/admin.rb in prologue-0.2.0 vs templates/admin.rb in prologue-0.3.0
- old
+ new
@@ -1,12 +1,7 @@
say "Building admin"
generate(:controller, "admin/dashboard index")
-
-inject_into_file 'config/routes.rb', :after => "devise_for :users\n" do
-<<-RUBY
- match 'admin' => 'admin/dashboard#index'
-RUBY
-end
+route("match 'admin' => 'admin/dashboard#index'")
# Do layout and SASS stuff
apply File.expand_path("../admin/sass.rb", __FILE__)
apply File.expand_path("../admin/layout.rb", __FILE__)
\ No newline at end of file