Class: Hydra::PermissionsSolrDocument
- Inherits:
-
SolrDocument
- Object
- SolrDocument
- Hydra::PermissionsSolrDocument
- Defined in:
- app/models/hydra/permissions_solr_document.rb
Instance Method Summary collapse
Instance Method Details
#under_embargo? ⇒ Boolean
2 3 4 5 6 7 8 9 10 |
# File 'app/models/hydra/permissions_solr_document.rb', line 2 def #permissions = permissions_doc(params[:id]) = Hydra.config...release_date if self[] = Date.parse(self[].split(/T/)[0]) return > Date.parse(Time.now.to_s) end false end |