Sha256: 6db26118d2f794b888893e9689f320817780e1c50cc24f3dbb9be64a176cd3ac
Contents?: true
Size: 448 Bytes
Versions: 13
Compression:
Stored size: 448 Bytes
Contents
class ContributorAgreement attr_reader :curation_concern, :user def initialize(curation_concern, user, params) @curation_concern = curation_concern @user = user @param_value = params[param_key.to_sym] || params[param_key.to_s] end def acceptance_value 'accept' end def param_key :accept_contributor_agreement end attr_reader :param_value def is_being_accepted? param_value == acceptance_value end end
Version data entries
13 entries across 13 versions & 1 rubygems