sausage-sandwich/ruby_sandwich

View on GitHub
apps/web/controllers/recipes/index.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module Web
  module Controllers
    module Recipes
      class Index
        include Web::Action

        expose :recipes

        def call(_params)
          repo = RecipeRepository.new

          @recipes = repo.latest
        end
      end
    end
  end
end