diff options
| author | hukl <contact@smyck.org> | 2009-03-10 23:48:26 +0100 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-03-10 23:48:26 +0100 |
| commit | d987886a9a94c6bad53ff7c7a241b85ea0b57de7 (patch) | |
| tree | 0bc31ca476e48631b9f19c3ff48c1a5f3ddac037 /app/controllers | |
| parent | f0582c5604a264d955a35a5986882d5a61d6acbc (diff) | |
added list of drafts to admin overview
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/admin_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb index 6694ad6..06c5390 100644 --- a/app/controllers/admin_controller.rb +++ b/app/controllers/admin_controller.rb | |||
| @@ -2,6 +2,7 @@ class AdminController < ApplicationController | |||
| 2 | before_filter :login_required | 2 | before_filter :login_required |
| 3 | 3 | ||
| 4 | def index | 4 | def index |
| 5 | @drafts = Page.find(:all, :include => [:node, :user], :conditions => ["nodes.draft_id = pages.id"]) | ||
| 5 | end | 6 | end |
| 6 | 7 | ||
| 7 | end | 8 | end |
