Sha256: bdd22f4f3f06a0a69230dec649664c42d63ed085be63b800d4c21494888907a7
Contents?: true
Size: 469 Bytes
Versions: 11
Compression:
Stored size: 469 Bytes
Contents
module Cms class DashboardController < Cms::BaseController layout 'cms/dashboard' def index @unpublished_pages = Page.unpublished.all(:order => "updated_at desc") @unpublished_pages = @unpublished_pages.select { |page| current_user.able_to_publish?(page) } @incomplete_tasks = current_user.tasks.incomplete.all( :include => :page, :order => "#{Task.table_name}.due_date desc, #{Page.table_name}.name") end end end
Version data entries
11 entries across 11 versions & 1 rubygems