sausage-sandwich/ruby_sandwich

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

Summary

Maintainability
A
0 mins
Test Coverage
module Admin
  module Controllers
    module Ingredients
      class Edit
        include Admin::Action

        expose :ingredient

        def call(params)
          repo = IngredientRepository.new

          @ingredient = repo.find(params[:id])
        end
      end
    end
  end
end