mirror of
https://github.com/internetee/registry.git
synced 2025-08-11 12:09:34 +02:00
added skip inner csrf handler
This commit is contained in:
parent
475cc11e5f
commit
0ac383843d
1 changed files with 7 additions and 0 deletions
|
@ -1,9 +1,16 @@
|
||||||
module EisBilling
|
module EisBilling
|
||||||
class InvoicesController < BaseController
|
class InvoicesController < BaseController
|
||||||
before_action :load_invoice, only: :update
|
before_action :load_invoice, only: :update
|
||||||
|
skip_before_action :verify_authenticity_token, only: [:update]
|
||||||
|
|
||||||
def update
|
def update
|
||||||
state = InvoiceStateMachine.new(invoice: @invoice, status: params[:status])
|
state = InvoiceStateMachine.new(invoice: @invoice, status: params[:status])
|
||||||
|
|
||||||
|
puts '-----'
|
||||||
|
puts @invoice
|
||||||
|
params[:status]
|
||||||
|
puts '----'
|
||||||
|
|
||||||
if @invoice.update(modified_params) && state.call
|
if @invoice.update(modified_params) && state.call
|
||||||
render json: {
|
render json: {
|
||||||
message: 'Invoice data was successfully updated',
|
message: 'Invoice data was successfully updated',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue