sausage-sandwich/ruby_sandwich

View on GitHub
apps/web/views/profile/recipes/units.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module Web
  module Views
    module Profile
      module Recipes
        module Units
          def units
            Unit::UNITS.each_with_object({}) do |unit, memo|
              memo[I18n.t(unit, scope: :units, count: 0)] = unit
            end
          end
        end
      end
    end
  end
end