app/repository_models/curation_concern/embargoable.rb in curate-0.5.4 vs app/repository_models/curation_concern/embargoable.rb in curate-0.5.5

- old
+ new

@@ -22,17 +22,19 @@ return Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_EMBARGO end super end end + + include Hydra::AccessControls::WithAccessRight + include VisibilityOverride + require 'morphine' + include Morphine + included do - include Hydra::AccessControls::WithAccessRight validates :embargo_release_date, future_date: true before_save :write_embargo_release_date, prepend: true - include VisibilityOverride - require 'morphine' - include Morphine register :embargoable_persistence_container do unless self.class.included_modules.include?('Hydra::AccessControls::Permissions') self.class.send(:include, Hydra::AccessControls::Permissions) end self.datastreams["rightsMetadata"]