Highlight correct menu item for Webhooks

pull/7465/head
Henriette Dinger 5 years ago
parent a9a2c07ca3
commit f557042d8b
  1. 3
      modules/webhooks/app/controllers/webhooks/outgoing/admin_controller.rb

@ -2,11 +2,12 @@ module Webhooks
module Outgoing module Outgoing
class AdminController < ::ApplicationController class AdminController < ::ApplicationController
layout 'admin' layout 'admin'
menu_item :plugin_webhooks
before_action :require_admin before_action :require_admin
before_action :find_webhook, only: [:show, :edit, :update, :destroy] before_action :find_webhook, only: [:show, :edit, :update, :destroy]
menu_item :plugin_webhooks
def index def index
@webhooks = webhook_class.all @webhooks = webhook_class.all
end end

Loading…
Cancel
Save