fix a bug I introduced
This commit is contained in:
parent
cd93a29377
commit
8fa02584c0
2 changed files with 2 additions and 2 deletions
|
|
@ -54,7 +54,7 @@ class TagsController < ApplicationController
|
|||
@posts = StatusMessage.all_public
|
||||
end
|
||||
|
||||
@posts = @posts.tagged_with(params[:name]).for_a_stream(max_time)
|
||||
@posts = @posts.tagged_with(params[:name]).for_a_stream(max_time, 'created_at')
|
||||
|
||||
@commenting_disabled = true
|
||||
params[:prefill] = "##{params[:name]} "
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ class Post < ActiveRecord::Base
|
|||
limit(15)
|
||||
end
|
||||
|
||||
def by_max_time(max_time, order='created_at')
|
||||
def self.by_max_time(max_time, order='created_at')
|
||||
where("posts.#{order} < ?", max_time).order("posts.#{order} desc")
|
||||
end
|
||||
#############
|
||||
|
|
|
|||
Loading…
Reference in a new issue