mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Merge pull request #4651 from mkllnk/remove-unused-presenter
Remove unused presenter
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
class VariantPresenter
|
||||
attr_accessor :variant
|
||||
|
||||
def initialize(variant)
|
||||
@variant = variant
|
||||
end
|
||||
|
||||
delegate :id, to: :variant
|
||||
|
||||
def image_url
|
||||
@variant.images.first.attachment.url :mini if @variant.images.present?
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user