Sha256: a94fd46b652d951f9b7ab2e3882fbb5ee14dbb61f7cda80d0f7782ea2f467272

Contents?: true

Size: 533 Bytes

Versions: 4

Compression:

Stored size: 533 Bytes

Contents

module Hatchy
  class Admin::DashboardController < Admin::ApplicationController
    def index
      @models = [
        Hatchy::Announcement.order(updated_at: :desc).first,
        Hatchy::Bank.order(updated_at: :desc).first,
        Hatchy::Category.order(updated_at: :desc).first,
        Hatchy::Contribution.order(updated_at: :desc).first,
        Hatchy::Project.order(updated_at: :desc).first,
        Hatchy::Reward.order(updated_at: :desc).first,
        Hatchy::User.order(updated_at: :desc).first,
      ]
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hatchy-0.0.8.pre app/controllers/hatchy/admin/dashboard_controller.rb
hatchy-0.0.7.pre app/controllers/hatchy/admin/dashboard_controller.rb
hatchy-0.0.6.pre app/controllers/hatchy/admin/dashboard_controller.rb
hatchy-0.0.5.pre app/controllers/hatchy/admin/dashboard_controller.rb