You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: turbo_streamable.rb
    path of file: ./repos/retrospring/app/controllers/concerns
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module TurboStreamable
  extend ActiveSupport::Concern

  class_methods do
    def turbo_stream_actions(*actions)
      around_action :handle_error, only: actions
    end
  end

  def render_toast(message, success = true)
    turbo_stream.append("toasts", partial: "shared/toast", locals: { messag
    
  def handle_error
    yield
  rescue Errors::Base => e
    render_error I18n.t(e.locale_tag)
  rescue KeyError, ActionController::ParameterMissing => e
    render_error t("errors.parameter_error", parameter: e.instance_of?(KeyError) ? e.key : e.param.capitalize)
  rescue Dry::Types::CoercionError, Dry::Types::ConstraintError
    render_error t("errors.invalid_parameter")
  rescue ActiveRecord::RecordInvalid => e
    render_error e.record.errors.full_messages.flatten.join(" ")
  rescue ActiveRecord::RecordNotFound
    render_error t("errors.record_not_found")
  end