Class: Decidim::Elections::ElectionsController
- Inherits:
-
ApplicationController
- Object
- Components::BaseController
- ApplicationController
- Decidim::Elections::ElectionsController
- Includes:
- ApplicationHelper, AttachmentsHelper, Orderable, FilterResource, Paginable
- Defined in:
- app/controllers/decidim/elections/elections_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
14 |
# File 'app/controllers/decidim/elections/elections_controller.rb', line 14 def index; end |
#show ⇒ Object
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 |