Permalink
Browse files

Fix for refinery/admin routing bug, where the admin route is differen…

…t between the current gem version and edge version on github (REFINERY_GEM_VERSION will no longer be defined in later versions of Refinery)
  • Loading branch information...
1 parent da3fe70 commit efd43f0ccd71816ba2096aa6e5882e3b81a550fa @awagener awagener committed Jun 10, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 config/routes.rb
View
2 config/routes.rb
@@ -12,7 +12,7 @@
map.raptcha '/raptcha', :controller => 'blogs', :action => 'captcha'
- map.namespace(:admin, :path_prefix => 'refinery') do |admin|
+ map.namespace(:admin, :path_prefix => (defined?(REFINERY_GEM_VERSION) ? "admin" : "refinery") ) do |admin|
admin.resources :blogs, :as => 'blog'
admin.resources :comments, :member => {:toggle_status => :get, :unread => :get}
admin.connect 'blog_settings/toggle_setting/:id', :controller => "blog_settings", :action => "toggle_setting"

0 comments on commit efd43f0

Please sign in to comment.