Sha256: 1af81546b767a55fb8e0e5d0af806933fa4ea8b50fa8758feb5d767f55d003cf
Contents?: true
Size: 634 Bytes
Versions: 9
Compression:
Stored size: 634 Bytes
Contents
# frozen_string_literal: true module Shark class Contract < Base extend ContactService::Resource belongs_to :contact def update_attributes(_attributes = {}) raise Shark::ActionNotSupportedError, 'Shark::Contract#update_attributes is not supported' end def destroy raise Shark::ActionNotSupportedError, 'Shark::Contract#destroy is not supported' end def save if self['id'].present? raise Shark::ActionNotSupportedError, 'Shark::Contract#save is not supported for persisted consents' else super end end end end
Version data entries
9 entries across 9 versions & 1 rubygems