init project

This commit is contained in:
Jasder
2020-03-09 00:40:16 +08:00
commit 2937b2a94d
6549 changed files with 7215173 additions and 0 deletions

11
app/libs/sidebar_util.rb Normal file
View 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