Sha256: 4aab9ea882f6a9c109382779af610ab9b6afce6d50fada6818fc2bc13be49f5d

Contents?: true

Size: 207 Bytes

Versions: 17

Compression:

Stored size: 207 Bytes

Contents

module CurationConcerns
  module Serializers
    def to_s
      if title.present?
        title.join(' | ')
      elsif label.present?
        label
      else
        'No Title'
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
curation_concerns-1.7.8 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-1.7.7 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-2.0.0 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-2.0.0.rc2 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-1.7.6 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-1.7.5 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-1.7.4 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-1.7.3 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-1.7.2 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-2.0.0.rc1 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-1.7.1 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-1.7.0 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-1.7.0.beta1 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-1.6.3 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-1.6.2 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-1.6.1 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-1.6.0 app/models/concerns/curation_concerns/serializers.rb