diff --git a/app/controllers/asciicasts_controller.rb b/app/controllers/asciicasts_controller.rb index 6f6fd58..3808706 100644 --- a/app/controllers/asciicasts_controller.rb +++ b/app/controllers/asciicasts_controller.rb @@ -15,7 +15,6 @@ class AsciicastsController < ApplicationController end def show - # TODO: filter out private or not (????) respond_to do |format| format.html do view_counter.increment(asciicast, cookies) diff --git a/app/models/asciicast.rb b/app/models/asciicast.rb index 96cf9f1..be772ea 100644 --- a/app/models/asciicast.rb +++ b/app/models/asciicast.rb @@ -48,7 +48,7 @@ class Asciicast < ActiveRecord::Base end def self.for_category_ordered(category, order, page = nil, per_page = nil) - collection = self.non_private + collection = non_private if category == :featured collection = collection.featured