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