blob: 55c66cfe1f09a6aea84dfdba35a0f8038d3a0258 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
class AdminController < ApplicationController
before_filter :login_required
def index
@drafts = Page.drafts
@recent_changes = Node.all(
:limit => 50,
:order => "updated_at desc",
:conditions => [
"updated_at < ? AND updated_at > ?", Time.now, Time.now-14.days
]
)
end
end
|