Class: Nquery::Embed::DashboardsController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Nquery::Embed::DashboardsController
- Defined in:
- app/controllers/nquery/embed/dashboards_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
9 10 11 12 13 14 |
# File 'app/controllers/nquery/embed/dashboards_controller.rb', line 9 def show payload = EmbedTokenService.verify(params[:token]) @dashboard = Dashboard.includes(dashboard_cards: :chart).find(payload[:resource_id]) rescue EmbedTokenService::Error render plain: "Invalid or expired embed token", status: :forbidden end |