Disable wrap parameters on submission controller
wrap parameters wraps the body parameters sent via a JSON request in a submission hash. We don't want that for our submissions.
This commit is contained in:
parent
2f1e0b8ccd
commit
92236aba2f
@ -1,6 +1,7 @@
|
|||||||
require 'google/apis/sheets_v4'
|
require 'google/apis/sheets_v4'
|
||||||
class SubmissionsController < ApplicationController
|
class SubmissionsController < ApplicationController
|
||||||
skip_before_action :verify_authenticity_token
|
skip_before_action :verify_authenticity_token
|
||||||
|
wrap_parameters false
|
||||||
|
|
||||||
def create
|
def create
|
||||||
@form = Form.find_by!(token: params[:form_id])
|
@form = Form.find_by!(token: params[:form_id])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user