Class: Decidim::Elections::ElectionsController

Inherits:
ApplicationController show all
Includes:
ApplicationHelper, AttachmentsHelper, Orderable, FilterResource, Paginable
Defined in:
app/controllers/decidim/elections/elections_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



14
# File 'app/controllers/decidim/elections/elections_controller.rb', line 14

def index; end

#showObject



16
17
18
19
20
21
22
23
24
# File 'app/controllers/decidim/elections/elections_controller.rb', line 16

def show
  respond_to do |format|
    format.html { render :show }

    format.json do
      render json: election.presenter.to_json
    end
  end
end