Class: Decidim::ManifestsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/decidim/manifests_controller.rb

Overview

A controller to serve the manifest file for PWA

Instance Method Summary collapse

Methods included from UserBlockedChecker

#check_user_block_status, #check_user_not_blocked

Methods included from NeedsSnippets

#snippets

Methods included from Headers::HttpCachingDisabler

#disable_http_caching

Methods included from HasStoredPath

#skip_store_location?, #store_current_location

Methods included from TranslatableAttributes

#default_locale?

Methods included from RegistersPermissions

register_permissions

Methods included from NeedsOrganization

enhance_controller, extended, included

Instance Method Details

#showObject



6
7
8
9
# File 'app/controllers/decidim/manifests_controller.rb', line 6

def show
  organization_presenter = OrganizationPresenter.new(current_organization)
  render layout: false, locals: { organization_params: organization_presenter }, content_type: "application/manifest+json"
end