app/presenters/spina/pages/menu_presenter.rb in spina-0.6.29 vs app/presenters/spina/pages/menu_presenter.rb in spina-0.7.0

- old
+ new

@@ -9,11 +9,11 @@ include ActionView::Helpers::TagHelper include ActionView::Helpers::UrlHelper include ActiveSupport::Configurable config_accessor :list_tag, :list_wrapper, :list_item_tag, :list_item_css, :selected_css, :current_css, :first_css, :last_css - + self.list_tag = :ul self.list_item_tag = :li self.list_item_css = nil self.list_wrapper = false self.selected_css = :selected @@ -58,12 +58,12 @@ end def render_menu_item(menu_item, index, menu_items_length) content_tag(list_item_tag, class: menu_item_css(menu_item[0], index, menu_items_length)) do buffer = ActiveSupport::SafeBuffer.new - buffer << link_to(menu_item[0].menu_title, "#{menu_item[0].materialized_path}") - buffer << render_list_wrapper(menu_item[1]) + buffer << link_to(menu_item[0].menu_title, menu_item[0].materialized_path) + buffer << render_list_wrapper(menu_item[1]) buffer end end def menu_item_css(menu_item, index, menu_items_length) @@ -77,6 +77,6 @@ css.reject(&:blank?).presence end end end -end \ No newline at end of file +end