Sha256: ae3e6a454704714575d1de91052b0fca7cfc6d95a8a6af1680283f89ee38623b

Contents?: true

Size: 455 Bytes

Versions: 7

Compression:

Stored size: 455 Bytes

Contents

Rails.application.routes.draw do
  namespace :admin do
    resources :roles, :except => :show do
      patch 'change', on: :member
      resources :sections, :controller => :role_sections, :only => :none do
        collection do
          post :create
          post :create_rule
        end

        member do
          put :rule_on
          put :rule_off

          delete :destroy
          delete :destroy_rule
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
the_role-2.5.3 config/routes.rb
the_role-2.5.2 config/routes.rb
the_role-2.5.1 config/routes.rb
the_role-2.5 config/routes.rb
the_role-2.4 config/routes.rb
the_role-2.3 config/routes.rb
the_role-2.1.1 config/routes.rb