app/models/events/event.rb
# Parses the +extra_fields_to_display+ field into a hash of column titles and code snippets.
Parses the +extra_fields_to_display+ field into a hash of column titles and code snippets.
Parses the + extra_fields_to_display + field into a hash of column titles and code snippets .
def extra_fields
    return {} if extra_fields_to_display.blank?
    fields = {}
    for field in extra_fields_to_display.split(/$/)
      f = field.strip.split("|")
      fields[f[0]] = f[1]
    end
    fields
  end
def extra_fields return { } if extra_fields_to_display . blank? fields = { } for field in extra_fields_to_display . split ( / $ / ) f = field . strip . split ( "|" ) fields [ f [ 0 ] ] = f [ 1 ] end fields end
Parses the +extra_fields_to_display+ field into a hash of column titles and code snippets.
Parses the + extra_fields_to_display + field into a hash of column titles and code snippets .