No "self" needed here

private-asciicasts
Marcin Kulik 10 years ago
parent 2c7d549778
commit 3f32ee0ef6

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

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

Loading…
Cancel
Save