Sha256: 62ef6e2549d125dc4f61321c35d6ddc00bdfaa1bc29c9c7a0566b045e873783b

Contents?: true

Size: 660 Bytes

Versions: 9

Compression:

Stored size: 660 Bytes

Contents

if Authorization::activate_authorization_rules_browser?
  if Rails.respond_to?(:application)
    Rails.application.routes.draw do
      resources :authorization_rules, :only => [:index] do
          collection do
            get :graph
            get :change
            get :suggest_change
          end
      end
      resources :authorization_usages, :only => :index
    end
  else
    ActionController::Routing::Routes.draw do |map|
      map.resources :authorization_rules, :only => [:index],
          :collection => {:graph => :get, :change => :get, :suggest_change => :get}
      map.resources :authorization_usages, :only => :index
    end
  end
end

Version data entries

9 entries across 9 versions & 4 rubygems

Version Path
zeiv-declarative_authorization-1.0.0.pre config/routes.rb
declarative_authorization-0.5.7 config/routes.rb
declarative_authorization-0.5.6 config/routes.rb
declarative_authorization-0.5.5 config/routes.rb
declarative_authorization-0.5.4 config/routes.rb
declarative_authorization-0.5.3 config/routes.rb
graylog2-declarative_authorization-0.5.2 config/routes.rb
declarative_authorization-0.5.2 config/routes.rb
declarative_authorization-dta-0.1.3 config/routes.rb