forked from jasder/forgeplus
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
|