Skip to content

Around actions don't work with batch actions #237

@Linuus

Description

@Linuus

If you have an around_action in your controllers, they won't work with batch actions since they redirect which halts the filter chain.

Example:

around_action :update_index, only: [:create, :update, :destroy]

  def update_index
    Chewy.atomic do
      yield
    end
  end  

This will not be run when running a batch action.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions