app/helpers/cms/application_helper.rb in tb_cms-1.3.0 vs app/helpers/cms/application_helper.rb in tb_cms-1.3.1

- old
+ new

@@ -83,12 +83,12 @@ return '' else menu_id = menu.id end - cache(['sp_list_menu', menu, options]) do - link_options = options[:link_options] if options.key?(:link_options) + Rails.cache.fetch(['sp_list_menu', menu, options]) do + link_options = options[:link_options] if options.has_key?(:link_options) start_menu_item = options[:start_menu_item_id] if options.key?(:start_menu_item_id) content = if options.key?(:id) "<ul id='#{options[:id]}' #{"class='#{options[:class]}'" if options.key?(:class)}>" else @@ -134,11 +134,11 @@ content += '</li>' end content += '</ul>' - concat content.html_safe - end + content + end.html_safe end def sp_menu_with_seperator(options = {}) seperator = '&nbsp;|&nbsp;'.html_safe seperator = options[:seperator] if options.key?(:seperator)