Module: Hyrax::Serializers
- Included in:
- FileSetBehavior, WorkBehavior
- Defined in:
- app/models/concerns/hyrax/serializers.rb
Instance Method Summary collapse
Instance Method Details
#to_s ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'app/models/concerns/hyrax/serializers.rb', line 4 def to_s if title.present? title.join(' | ') elsif label.present? label else I18n.t('hyrax.works.missing_title') end end |