Class: Decidim::Meetings::VersionsController

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

Overview

Exposes the meeting resource so users can view them

Instance Method Summary collapse

Instance Method Details

#versioned_resourceObject



9
10
11
# File '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