Sha256: 93d67bfd63b3a61b3581eb50648b5f6f222ab4136bfcb4a377fbb3081bf12a58

Contents?: true

Size: 436 Bytes

Versions: 8

Compression:

Stored size: 436 Bytes

Contents

require_dependency "avo/application_controller"

module Avo
  class DashboardsController < ApplicationController
    before_action :set_dashboard, only: :show

    def show
      @page_title = @dashboard.name
    end

    private

    def set_dashboard
      @dashboard = Avo::App.get_dashboard_by_id params[:id]

      raise ActionController::RoutingError.new("Not Found") if @dashboard.nil? || @dashboard.is_hidden?
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
avo-2.21.3.pre.pr1489 app/controllers/avo/dashboards_controller.rb
avo-2.21.2.pre.pr1486 app/controllers/avo/dashboards_controller.rb
avo-2.21.1.pre.pr1484 app/controllers/avo/dashboards_controller.rb
avo-2.21.0 app/controllers/avo/dashboards_controller.rb
avo-2.21.1.pre.pr1476 app/controllers/avo/dashboards_controller.rb
avo-2.21.1.pre.issue1450 app/controllers/avo/dashboards_controller.rb
avo-2.21.1.pre.issue1444 app/controllers/avo/dashboards_controller.rb
avo-2.20.0 app/controllers/avo/dashboards_controller.rb