Sha256: aeec05c44e7b0ac337b1e40bf3eb01b9e36aefb70f9ebadab5a0d41138c351be

Contents?: true

Size: 233 Bytes

Versions: 27

Compression:

Stored size: 233 Bytes

Contents

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

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
curation_concerns-0.14.0.pre4 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-0.14.0.pre3 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-0.14.0.pre2 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-0.14.0.pre1 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-0.13.1 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-0.13.0 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-0.12.0 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-0.12.0.pre9 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-0.12.0.pre8 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-0.12.0.pre7 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-0.12.0.pre6 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-0.12.0.pre5 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-0.12.0.pre4 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-0.12.0.pre3 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-0.12.0.pre2 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-models-0.12.0.pre1 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-models-0.11.0 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-models-0.11.0.rc1 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-models-0.10.0 app/models/concerns/curation_concerns/serializers.rb
curation_concerns-models-0.9.0 app/models/concerns/curation_concerns/serializers.rb