No "self" needed here

This commit is contained in:
Marcin Kulik 2015-04-26 13:54:23 +00:00
parent 2c7d549778
commit 3f32ee0ef6
2 changed files with 1 additions and 2 deletions

View File

@ -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)

View File

@ -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