improves naming consistency
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user