Files
openfoodnetwork/app/controllers/api/terms_and_conditions_controller.rb
2020-08-31 20:00:08 +01:00

19 lines
342 B
Ruby

# frozen_string_literal: true
module Api
class TermsAndConditionsController < Api::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