app/models/offerings/offering_session.rb
def title(options = {})
    raw_title = read_attribute(:title)
    id_text = "Session #{identifier}" unless identifier.blank?
    return "#{id_text + ': ' unless id_text.nil?}#{raw_title}" if options[:include_identifier]
    return "#{id_text}" if options[:identifier_only] && !identifier.blank?
    return "#{raw_title}"
  end
# Returns a modified title to allow us to include things like the session identifier. Valid Options include:
Returns a modified title to allow us to include things like the session identifier. Valid Options include.
Returns a modified title to allow us to include things like the session identifier . Valid Options include .
def title(options = {})
    raw_title = read_attribute(:title)
    id_text = "Session #{identifier}" unless identifier.blank?
    return "#{id_text + ': ' unless id_text.nil?}#{raw_title}" if options[:include_identifier]
    return "#{id_text}" if options[:identifier_only] && !identifier.blank?
    return "#{raw_title}"
  end
def title ( options = { } ) raw_title = read_attribute ( :title ) id_text = "Session #{identifier}" unless identifier . blank? return "#{id_text + ': ' unless id_text.nil?}#{raw_title}" if options [ :include_identifier ] return "#{id_text}" if options [ :identifier_only ] && ! identifier . blank? return "#{raw_title}" end
Returns a modified title to allow us to include things like the session identifier.
Returns a modified title to allow us to include things like the session identifier .
options