Sha256: 134f71b9f2d62c96bacfa7d035ebd29960c4127bc71a71836fe9d18850bb32e6
Contents?: true
Size: 438 Bytes
Versions: 7
Compression:
Stored size: 438 Bytes
Contents
def FactoryGirl.create_curation_concern(factory_name, user, override_attributes = {}) object = FactoryGirl.build(factory_name, override_attributes) object.apply_depositor_metadata(user.user_key) object.creator = user.to_s object.date_uploaded = Date.today object.date_modified = Date.today object.set_visibility(override_attributes[:visibility] || AccessRight::VISIBILITY_TEXT_VALUE_AUTHENTICATED) object.save! object end
Version data entries
7 entries across 7 versions & 1 rubygems