Sha256: c5e155b7e5b96732b8db3d8e6789145bfa9656b186f96c426752a98ee31a64b4
Contents?: true
Size: 670 Bytes
Versions: 3
Compression:
Stored size: 670 Bytes
Contents
module ActionDispatch::Routing class Mapper def curupira_routes scope module: 'curupira' do resources :users, except: :destroy do get 'groups/:group_user_id/roles', to: 'users#permission',as: 'permission', action: :permission, controller: :users end patch 'permissions/:group_user_id', to: 'permissions#create', as: 'permissions' resources :groups, except: :destroy resources :roles, except: :destroy resource :session, only: [:new, :create] do get :destroy, as: :destroy end resources :passwords, only: [:new, :create, :edit, :update] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
curupira-0.1.7 | lib/curupira/rails/routes.rb |
curupira-0.1.6 | lib/curupira/rails/routes.rb |
curupira-0.1.4 | lib/curupira/rails/routes.rb |