Skip to content

How can I get the batch_sequential values when I am in the controller ? #9

Description

@mongeta

Hi,

How can I get the batch values when I am in the controller ?

I am using batch_sequential, I can see the payload is correct using request.body.read.

After inspecting the source code of the gem, I have no clue how to obtain the correct payload.

I am using the ember addon

initializer:
Rails.application.config do |config|
config.batch_sequential_paths = ['batch_sequential'] # ['/api/v1/batch_sequential']
config.batch_parallel_paths = nil # ['/api/v1/batch_parallel']
end

controller:
class BatchSequentialController < ApplicationController
def create
puts JSON.parse(request.body.read.to_json)
byebug
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions