blob: 46c66b4e9d541b7a55ad58c9fa7d43f859c258ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
class IController < ApplicationController
before_filter :force_page, :only => [:best, :recent]
def best
@title = "Best Tweets"
render_timeline do
Tweet
.reacted
.not_protected
.original
.order_by_reactions
end
end
def recent
@title = "Recent Best Tweets"
render_timeline do
Tweet
.recent
.reacted
.not_protected
.original
.order_by_reactions
end
end
def timeline
@title = "Public Timeline"
render_timeline do
Tweet
.reacted
.not_protected
.order_by_id
end
end
end
|