app/models/activities/accountability_report.rb
# Returns the current status message that's stored in the status file.
Returns the current status message that's stored in the status file.
Returns the current status message that ' s stored in the status file .
def status
    status_file_path = File.join(RAILS_ROOT, "files", "activity_results", "status_#{id.to_s}.log")
    return nil unless File.exists? status_file_path
    File.open(status_file_path, 'r').read
  end
def status status_file_path = File . join ( RAILS_ROOT , "files" , "activity_results" , "status_#{id.to_s}.log" ) return nil unless File . exists? status_file_path File . open ( status_file_path , 'r' ) . read end
Returns the current status message that's stored in the status file.
Returns the current status message that ' s stored in the status file .