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
|
@posts = StatusMessage.all_public
|
||||||
end
|
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
|
@commenting_disabled = true
|
||||||
params[:prefill] = "##{params[:name]} "
|
params[:prefill] = "##{params[:name]} "
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ class Post < ActiveRecord::Base
|
||||||
limit(15)
|
limit(15)
|
||||||
end
|
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")
|
where("posts.#{order} < ?", max_time).order("posts.#{order} desc")
|
||||||
end
|
end
|
||||||
#############
|
#############
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue