sausage-sandwich/ruby_sandwich

View on GitHub
apps/web/controllers/session/destroy.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module Web
  module Controllers
    module Session
      class Destroy
        include Web::Action

        def call(_params)
          session[:user_id] = nil

          redirect_to Web.routes.path(:recipes)
        end
      end
    end
  end
end