lib/rails_band/action_controller/event/halted_callback.rb



# frozen_string_literal: true

module RailsBand
  module ActionController
    module Event
      # A wrapper for the event that is passed to `halted_callback.action_controller`.
      class HaltedCallback < BaseEvent
        def filter
          @filter ||= @event.payload.fetch(:filter)
        end
      end
    end
  end
end