```ruby
ActionController::Routing::Routes.draw do |map|
  if Authorization::activate_authorization_rules_browser?
    map.resources :authorization_rules, :only => [:index], 
        :collection => {:graph => :get, :change => :get, :suggest_change => :get}
    map.resources :authorization_usages, :only => :index
  end
end```

Use Rails 3's prefered interface while maintaining backwards compatibility.
user
```ruby
# Rails 3 depreciates ActionController::Routing::Routes 
routes = (Rails.respond_to?(:application) ? Rails.application.routes : ActionController::Routing::Routes)

routes.draw do |map|
  if Authorization::activate_authorization_rules_browser?
    map.resources :authorization_rules, :only => [:index],
        :collection => {:graph => :get, :change => :get, :suggest_change => :get}
    map.resources :authorization_usages, :only => :index
  end
end```
assistant