mirror of
https://github.com/internetee/registry.git
synced 2025-07-27 21:16:12 +02:00
reverse accidently changes
This commit is contained in:
parent
0ac383843d
commit
dafa60bbbe
1 changed files with 0 additions and 6 deletions
|
@ -1,16 +1,10 @@
|
|||
module EisBilling
|
||||
class InvoicesController < BaseController
|
||||
before_action :load_invoice, only: :update
|
||||
skip_before_action :verify_authenticity_token, only: [:update]
|
||||
|
||||
def update
|
||||
state = InvoiceStateMachine.new(invoice: @invoice, status: params[:status])
|
||||
|
||||
puts '-----'
|
||||
puts @invoice
|
||||
params[:status]
|
||||
puts '----'
|
||||
|
||||
if @invoice.update(modified_params) && state.call
|
||||
render json: {
|
||||
message: 'Invoice data was successfully updated',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue