improves naming consistency

This commit is contained in:
Juanjo Bazán
2017-02-14 16:05:28 +01:00
parent c359b93fd0
commit 4beee7bacc

View File

@@ -20,7 +20,7 @@ class Admin::Poll::BoothAssignmentsController < Admin::BaseController
end end
def create def create
@booth_assignment = ::Poll::BoothAssignment.new(poll_id: booth_assignment_params[:poll_id], booth_id: booth_assignment_params[:booth]) @booth_assignment = ::Poll::BoothAssignment.new(poll_id: booth_assignment_params[:poll_id], booth_id: booth_assignment_params[:booth_id])
if @booth_assignment.save if @booth_assignment.save
notice = t("admin.poll_booth_assignments.flash.create") notice = t("admin.poll_booth_assignments.flash.create")
@@ -48,7 +48,7 @@ class Admin::Poll::BoothAssignmentsController < Admin::BaseController
end end
def booth_assignment_params def booth_assignment_params
params.permit(:booth, :poll_id) params.permit(:booth_id, :poll_id)
end end
def load_poll def load_poll