mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
17 lines
337 B
Ruby
17 lines
337 B
Ruby
# frozen_string_literal: false
|
|
|
|
class Invoice
|
|
class DataPresenter
|
|
class Variant < Invoice::DataPresenter::Base
|
|
attributes :id, :display_name, :options_text
|
|
attributes_with_presenter :product
|
|
|
|
def name_to_display
|
|
return product.name if display_name.blank?
|
|
|
|
display_name
|
|
end
|
|
end
|
|
end
|
|
end
|