Sha256: 7f7626ddd704404f075a2612e7318f73122eca7662946469964c239ce3a30e5a

Contents?: true

Size: 815 Bytes

Versions: 5

Compression:

Stored size: 815 Bytes

Contents

Authz::Engine.routes.draw do

  root 'home#index'
  resources :controller_actions
  resources :pending_controller_actions, only: [:index]
  resources :stale_controller_actions, only: [:index]
  resources :business_processes
  resources :roles do
    resources :scoping_rules, only: [:new, :create, :edit, :update]
  end

  namespace :bulk do
    post 'controller_actions/create'
    delete 'controller_actions/destroy'
  end

  namespace :validations do
    resources :controller_names, only: [:new]
    resources :action_names, only: [:new]
    resources :business_process_names, only: [:new, :edit]
    resources :role_names, only: [:new, :edit]
  end

  Authz.rolables.each do |rolable|
    resources rolable.authorizable_association_name, only: [:index, :show, :edit, :update], controller: :rolables
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
authz-0.0.5 config/routes.rb
authz-0.0.4 config/routes.rb
authz-0.0.3 config/routes.rb
authz-0.0.2 config/routes.rb
authz-0.0.1 config/routes.rb