Sha256: 0580aa72b0363174c9dfa0b89ea8ccc0a1277cba4fd4ce356bd4de597792db31
Contents?: true
Size: 398 Bytes
Versions: 3
Compression:
Stored size: 398 Bytes
Contents
# frozen_string_literal: true module Hyrax ## # A module of form behaviours for depositors and depositor agreements. module DepositAgreementBehavior def self.included(descendant) descendant.property :depositor descendant.property :agreement_accepted, virtual: true, default: false, prepopulator: proc { |_opts| self.agreement_accepted = !model.new_record } end end end
Version data entries
3 entries across 3 versions & 1 rubygems