Class: Decidim::Meetings::VersionsController

Inherits:
ApplicationController show all
Includes:
ResourceVersionsConcern
Defined in:
decidim-meetings/app/controllers/decidim/meetings/versions_controller.rb

Overview

Exposes the meeting resource so users can view them

Instance Method Summary collapse

Methods inherited from Components::BaseController

#current_component, #current_manifest, #current_participatory_space, #permission_class_chain, #permission_scope, #redirect_unless_feature_private, #share_token

Methods included from RegistersPermissions

register_permissions

Methods included from UserBlockedChecker

#check_user_block_status, #check_user_not_blocked

Methods included from NeedsSnippets

#snippets

Methods included from HttpCachingDisabler

#disable_http_caching

Methods included from HasStoredPath

#skip_store_location?, #store_current_location

Methods included from NeedsOrganization

enhance_controller, extended, included

Instance Method Details

#versioned_resourceObject


9
10
11
# File 'decidim-meetings/app/controllers/decidim/meetings/versions_controller.rb', line 9

def versioned_resource
  @versioned_resource ||= Meeting.not_hidden.where(component: current_component).find(params[:meeting_id])
end