Sha256: 143107d46b08ab140ffc2525069a02de6e23c8a69cb8a0c1be0a10fcfba56a5d
Contents?: true
Size: 670 Bytes
Versions: 8
Compression:
Stored size: 670 Bytes
Contents
require_dependency 'comable/admin/application_controller' module Comable module Admin class DashboardController < Comable::Admin::ApplicationController def show @this_month_orders = Comable::Order.this_month @this_week_orders = Comable::Order.this_week @last_week_orders = Comable::Order.last_week authorize! :read, @this_month_orders @this_month_users = Comable::User.with_role(:customer).this_month @this_week_users = Comable::User.with_role(:customer).this_week @last_week_users = Comable::User.with_role(:customer).last_week authorize! :read, @this_week_users end end end end
Version data entries
8 entries across 8 versions & 2 rubygems