30 lines
522 B
Ruby
30 lines
522 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
module Sidebars
|
||
|
module Admin
|
||
|
module Menus
|
||
|
class SystemHooksMenu < ::Sidebars::Admin::BaseMenu
|
||
|
override :link
|
||
|
def link
|
||
|
admin_hooks_path
|
||
|
end
|
||
|
|
||
|
override :title
|
||
|
def title
|
||
|
s_('Admin|System Hooks')
|
||
|
end
|
||
|
|
||
|
override :sprite_icon
|
||
|
def sprite_icon
|
||
|
'hook'
|
||
|
end
|
||
|
|
||
|
override :active_routes
|
||
|
def active_routes
|
||
|
{ controller: :hooks }
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|