This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Tweaked the routes to align with the new RoR 2.3.4 behaviour.

  • Loading branch information...
baldowl committed Sep 23, 2009
1 parent 562cd41 commit 03de3cb2a07084c31ba799f6e82e109a9a673639
Showing with 1 addition and 1 deletion.
  1. +1 −1 init.rb
View
@@ -9,9 +9,9 @@ def draw_with_admin
draw_without_admin do |map|
prefix = AutoAdmin::AutoAdminConfiguration.url_prefix rescue 'admin'
map.connect "#{prefix}", :controller => 'auto_admin', :action => 'index'
+ map.connect "#{prefix}/asset/*path", :controller => 'auto_admin', :action => 'asset'
map.connect "#{prefix}/-/:action/:id", :controller => 'auto_admin', :action => 'index',
:requirements => { :model => nil }
- map.connect "#{prefix}/asset/*path", :controller => 'auto_admin', :action => 'asset'
map.connect "#{prefix}/:model/:action", :controller => 'auto_admin', :action => 'list',
:requirements => { :action => /[^0-9].*/, :id => nil }

0 comments on commit 03de3cb

Please sign in to comment.