mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
init project
This commit is contained in:
11
app/libs/sidebar_util.rb
Normal file
11
app/libs/sidebar_util.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
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
|
||||
Reference in New Issue
Block a user