Sha256: 1b8232acd022aac13fa833323f52d451331bef63ec5f150b5f0f93d907249e16

Contents?: true

Size: 478 Bytes

Versions: 5

Compression:

Stored size: 478 Bytes

Contents

require_dependency 'bulutfon_dashboard/application_controller'

module BulutfonDashboard
  class DashboardsController < ApplicationController
    add_breadcrumb 'Bulutfon', BulutfonDashboard::Engine.routes.url_helpers.root_path

    def index
      @details = @bulutfon.details
      @content_count = 5
      cdrs_open_struct = @bulutfon.cdrs.all({page: 1, limit: @content_count}).to_obj
      @cdrs = cdrs_open_struct.cdrs
      @user = ApiUser.new(@details)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bulutfon_dashboard-0.7.4 app/controllers/bulutfon_dashboard/dashboards_controller.rb
bulutfon_dashboard-0.7.3 app/controllers/bulutfon_dashboard/dashboards_controller.rb
bulutfon_dashboard-0.7.2 app/controllers/bulutfon_dashboard/dashboards_controller.rb
bulutfon_dashboard-0.7.1 app/controllers/bulutfon_dashboard/dashboards_controller.rb
bulutfon_dashboard-0.7.0 app/controllers/bulutfon_dashboard/dashboards_controller.rb