mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 11:50:49 +08:00
11 lines
255 B
Ruby
11 lines
255 B
Ruby
class SidebarUtil
|
|
class << self
|
|
def controller_name(name)
|
|
sidebar_controller_map[name]
|
|
end
|
|
|
|
def sidebar_controller_map
|
|
@_sidebar_controller_map ||= YAML.load_file(Rails.root.join('config/admins', 'sidebar.yml'))
|
|
end
|
|
end
|
|
end |