Sha256: ba9a781bc94510305dea8517244d943b4236868a24f05e494a01b74f4258a0ee

Contents?: true

Size: 450 Bytes

Versions: 4

Compression:

Stored size: 450 Bytes

Contents

# 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

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
declarative_authorization-0.5.1 config/routes.rb
declarative_authorization-dta-0.1.1 config/routes.rb
declarative_authorization-dta-0.1 config/routes.rb
declarative_authorization-0.5 config/routes.rb