Files
openfoodnetwork/app/controllers/api/promo_images_controller.rb

17 lines
286 B
Ruby

module Api
class PromoImagesController < Api::EnterpriseAttachmentController
private
def attachment_name
:promo_image
end
def enterprise_authorize_action
case action_name.to_sym
when :destroy
:remove_promo_image
end
end
end
end