remove debug

This commit is contained in:
Andrew Brown 2018-09-11 03:28:44 -05:00
parent 9606b82e5f
commit f3bfd604c9
2 changed files with 1 additions and 1 deletions

View File

@ -9,6 +9,7 @@ module HasAttributes
def self.attribute_categories(user, show_hidden: false)
return [] if ['attribute_category', 'attribute_field'].include?(content_name)
# This doesn't work the way I think it does
#return @cached_attribute_categories_for_this_content if @cached_attribute_categories_for_this_content
# Always include the flatfile categories (but create AR versions if they don't exist)

View File

@ -54,7 +54,6 @@
<%# for debugging: fields.map { |field| field.attribute_values.where(entity_id: content.id).map { |av| av.value } }.uniq %>
<li class="collection-item tab">
<%= category.id %>
<a href="#<%= category.name.gsub("'", '') %>_panel" class="<%= 'red-text' if category.label == 'Overview' %>">
<i class="material-icons left"><%= category.icon %></i>
<%= category.label.capitalize.presence || '(blank)' %>