Sha256: ae868cc1cf975a16b305541565230949206a6718e6e7ca6a721adee51045826a
Contents?: true
Size: 707 Bytes
Versions: 66
Compression:
Stored size: 707 Bytes
Contents
module Avo module Tools class ToolManager class << self def build new end end # Insert any partials that we find in app/views/avo/sidebar/items. def get_sidebar_partials Dir.glob(Rails.root.join("app", "views", "avo", "sidebar", "items", "*.html.erb")) .map do |path| File.basename path end .map do |filename| # remove the leading underscore (_) filename[0] = "" # remove the extension filename.gsub!(".html.erb", "") filename end end def tools_for_navigation get_sidebar_partials end end end end
Version data entries
66 entries across 66 versions & 1 rubygems