diff --git a/app/views/posts/index.haml b/app/views/posts/index.haml index 8aa11735..3896354a 100644 --- a/app/views/posts/index.haml +++ b/app/views/posts/index.haml @@ -31,13 +31,13 @@ %table.table.table-condensed.table-draggable %tbody - @posts.each_with_index do |post, i| - - next unless policy(post).show? -# saltearse el post a menos que esté en la categoría por la que estamos filtrando - if @category - next unless post.attributes.include? :categories - next unless post.categories.value.include?(@category) + - next unless policy(post).show? %tr %td .handle