Sha256: 5496c496e2a742f5c12b5d43fd5b4547f12ebe2dd7a5c998ca4fe835be8d4f0b
Contents?: true
Size: 452 Bytes
Versions: 11
Compression:
Stored size: 452 Bytes
Contents
module Cms class DashboardController < Cms::BaseController def index @unpublished_pages = Page.unpublished.order("updated_at desc") @unpublished_pages = @unpublished_pages.select { |page| current_user.able_to_publish?(page) } @incomplete_tasks = current_user.tasks.incomplete. includes(:page). order("#{Task.table_name}.due_date desc, #{Page.table_name}.name"). references(:page) end end end
Version data entries
11 entries across 11 versions & 2 rubygems