Sha256: 8adafbfa42a7ea8002bb7bb0782e88f7d01d3231ef531d090d01d3759bdacc42

Contents?: true

Size: 339 Bytes

Versions: 7

Compression:

Stored size: 339 Bytes

Contents

require_dependency "apidae/application_controller"

module Apidae
  class DashboardController < ApplicationController
    def index
      @objects = Obj.count
      @selections = Selection.count
      @projects = Project.count
      @references = Reference.count
      @last_imports = FileImport.order(id: :desc).take(5)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
apidae-0.7.8 app/controllers/apidae/dashboard_controller.rb
apidae-0.7.7 app/controllers/apidae/dashboard_controller.rb
apidae-0.7.6 app/controllers/apidae/dashboard_controller.rb
apidae-0.7.3 app/controllers/apidae/dashboard_controller.rb
apidae-0.7.2 app/controllers/apidae/dashboard_controller.rb
apidae-0.7.1 app/controllers/apidae/dashboard_controller.rb
apidae-0.7.0 app/controllers/apidae/dashboard_controller.rb