Class: Admin::PollsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Admin::PollsController
- Includes:
- Effective::CrudController
- Defined in:
- app/controllers/admin/polls_controller.rb
Instance Method Summary collapse
Instance Method Details
#permitted_params ⇒ Object
16 17 18 |
# File 'app/controllers/admin/polls_controller.rb', line 16 def permitted_params params.require(:effective_poll).permit! end |
#results ⇒ Object
8 9 10 11 12 13 14 |
# File 'app/controllers/admin/polls_controller.rb', line 8 def results @poll = Effective::Poll.find(params[:id]) EffectiveResources.(self, :results, @poll) @datatable = Admin::EffectivePollResultsDatatable.new(poll_token: @poll.token) @page_title = "#{@poll} Results" end |