Skip to content

Commit

Permalink
Remove show/print action from initiatives' admin
Browse files Browse the repository at this point in the history
  • Loading branch information
andreslucena committed Apr 13, 2022
1 parent 32a7282 commit e9e15ad
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 186 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ def index
@initiatives = filtered_collection
end

# GET /admin/initiatives/:id
def show
enforce_permission_to :read, :initiative, initiative: current_initiative
end

# GET /admin/initiatives/:id/edit
def edit
enforce_permission_to :edit, :initiative, initiative: current_initiative
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class AdminEngine < ::Rails::Engine
resources :initiatives_type_scopes, except: [:index, :show]
end

resources :initiatives, only: [:index, :show, :edit, :update], param: :slug do
resources :initiatives, only: [:index, :edit, :update], param: :slug do
member do
get :send_to_technical_validation
post :publish
Expand Down

0 comments on commit e9e15ad

Please sign in to comment.