Sha256: 5ae3ac7e15a0e55e67bb0bd898b6e5eea08195052aafd0ef53bdd43b53c3651e
Contents?: true
Size: 391 Bytes
Versions: 9
Compression:
Stored size: 391 Bytes
Contents
class Cms::DashboardController < Cms::BaseController 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 => "tasks.due_date desc, pages.name") end end
Version data entries
9 entries across 9 versions & 3 rubygems