Permalink
Browse files

fix routes for rails 3.1

  • Loading branch information...
1 parent f57e73d commit a1e157a22d87df80c2a695516b2cc504a3b18285 @grosser committed Sep 9, 2011
Showing with 7 additions and 7 deletions.
  1. +7 −7 config/routes.rb
View
@@ -1,9 +1,9 @@
-router = if Rails::VERSION::MAJOR == '3'
- Rails.application.routes
+if Rails::VERSION::MAJOR >= 3
+ Rails.application.routes.draw do
+ resources :translation_keys
+ end
else
- ActionController::Routing::Routes
-end
-
-router.draw do |map|
- map.resources :translation_keys
+ ActionController::Routing::Routes.draw do |map|
+ map.resources :translation_keys
+ end
end

0 comments on commit a1e157a

Please sign in to comment.