Class: Spotlight::Masthead
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Spotlight::Masthead
- Defined in:
- app/models/spotlight/masthead.rb
Instance Method Summary collapse
Instance Method Details
#display? ⇒ Boolean
14 15 16 |
# File 'app/models/spotlight/masthead.rb', line 14 def display? self.display && image.cropped_masthead.present? end |
#document ⇒ Object
9 10 11 12 |
# File 'app/models/spotlight/masthead.rb', line 9 def document return unless document_global_id && source == 'exhibit' @document ||= GlobalID::Locator.locate document_global_id end |