app/models/applications/application_file.rb
def public_filename(record, file)
    filename = [application_for_offering.id.to_s] 
    filename << application_for_offering.person.fullname
    filename << title
    ext = file.suffix.nil? || file.suffix == :original ? file.extension : file.suffix
    filename.join(' ').gsub(/[^a-z0-9 \(\)]+/i,'') + ".#{ext}"
  end
# Supplies the filename to use when sending the file to the user's browser
Supplies the filename to use when sending the file to the user's browser
Supplies the filename to use when sending the file to the user ' s browser
def public_filename(record, file)
    filename = [application_for_offering.id.to_s] 
    filename << application_for_offering.person.fullname
    filename << title
    ext = file.suffix.nil? || file.suffix == :original ? file.extension : file.suffix
    filename.join(' ').gsub(/[^a-z0-9 \(\)]+/i,'') + ".#{ext}"
  end
def public_filename ( record , file ) filename = [ application_for_offering . id . to_s ] filename << application_for_offering . person . fullname filename << title ext = file . suffix . nil? || file . suffix == :original ? file . extension : file . suffix filename . join ( ' ' ) . gsub ( / [^a-z0-9  \( \) ]+ /i , '' ) + ".#{ext}" end
Supplies the filename to use when sending the file to the user's browser
Supplies the filename to use when sending the file to the user ' s browser
record
file