Files
openfoodnetwork/app/controllers/api/v0/terms_and_conditions_controller.rb
2021-03-27 11:21:18 -07:00

21 lines
388 B
Ruby

# frozen_string_literal: true
module Api
module V0
class TermsAndConditionsController < Api::V0::EnterpriseAttachmentController
private
def attachment_name
:terms_and_conditions
end
def enterprise_authorize_action
case action_name.to_sym
when :destroy
:remove_terms_and_conditions
end
end
end
end
end