app/helpers/application_helper.rb in chef-server-webui-0.8.14 vs app/helpers/application_helper.rb in chef-server-webui-0.8.16

- old
+ new

@@ -110,10 +110,10 @@ count += to_send.length end count end - def syntax_hightlight(uri) + def syntax_highlight(uri) code = Chef::REST.new(Chef::Config[:chef_server_url]).get_rest(uri) CodeRay.encode_tokens(CodeRay.scan(code, :ruby), :span) end def str_to_bool(str)