Sha256: de3b7dc162c94386bfd124a46a2f06fd8b7db0b68d904ad4c76d0dcfff5fb5db

Contents?: true

Size: 243 Bytes

Versions: 22

Compression:

Stored size: 243 Bytes

Contents

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

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
curation_concerns-1.5.0 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-1.4.0 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-1.3.3 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-1.3.2 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-1.3.1 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-1.3.0 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-1.2.0 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-1.1.2 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-1.1.1 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-1.1.0 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-1.0.0 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-1.0.0.beta10 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-1.0.0.beta9 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-1.0.0.beta8 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-1.0.0.beta7 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-1.0.0.beta6 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-1.0.0.beta5 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-1.0.0.beta4 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-1.0.0.beta3 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-1.0.0.beta2 app/models/concerns/curation_concerns/serializers.rb