sausage-sandwich/ruby_sandwich

View on GitHub
apps/admin/controllers/ingredients/index.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module Admin
  module Controllers
    module Ingredients
      class Index
        include Admin::Action

        expose :ingredients

        def call(_params)
          repo = IngredientRepository.new

          @ingredients = repo.alphabetical
        end
      end
    end
  end
end