lib/tree_html.rb in tree_html-0.1.6 vs lib/tree_html.rb in tree_html-0.1.7

- old
+ new

@@ -5,10 +5,10 @@ NO_DATA_IN_A = {}.freeze NO_CHECKBOX = "<label class='placeholder'></label>".freeze BLANK = ''.freeze NO_CUSTOM_JS = [].freeze Css = File.read File.expand_path('../tree_html/tree_html.css', __FILE__) - Js = File.read File.expand_path('../tree_html/tree_html.js', __FILE__) + Js = Dir.glob("#{File.expand_path(__dir__)}/tree_html/*.js").map{|f| File.read f }.join(';') def tree_html "<ul class='tree-html'>#{li_for_tree_html}</ul>" end