Module: Sufia::ModelMethods

Extended by:
ActiveSupport::Concern
Included in:
Batch, CollectionBehavior, GenericFile
Defined in:
app/models/concerns/sufia/model_methods.rb

Instance Method Summary collapse

Instance Method Details

#to_sObject



9
10
11
12
13
14
15
16
17
# File 'app/models/concerns/sufia/model_methods.rb', line 9

def to_s
  if title.present?
    Array(title).join(" | ")
  elsif label.present?
    Array(label).join(" | ")
  else
    "No Title"
  end
end