app/models/item.rb
# returns just the description, unless sort is section or self
# result might look like this:   "zu freien Moduln"
returns just the description, unless sort is section or self
result might look like this:   "zu freien Moduln"
returns just the description unless sort is section or self result might look like this : " zu freien Moduln "
def short_description
    return section.title if sort == 'section' && section.present?
    return medium.title_for_viewers if sort == 'self'
    description.to_s
  end
def short_description return section . title if sort == 'section' && section . present? return medium . title_for_viewers if sort == 'self' description . to_s end
returns just the description, unless sort is section or self
result might look like this:   "zu freien Moduln"
returns just the description unless sort is section or self result might look like this : " zu freien Moduln "