app/models/required_report.rb
# Parse frequency and frequency integer into readable string
Parse frequency and frequency integer into readable string
Parse frequency and frequency integer into readable string
def frequency_string
    return '' if frequency.nil?
    frequency_string = frequency
    if frequency_string != 'Once'
      if frequency_integer == 1
        frequency_string = frequency_string.delete_suffix('s')
      end
      frequency_string = frequency_string.sub('X', frequency_integer.to_s)
    end
    frequency_string
  end
def frequency_string return '' if frequency . nil? frequency_string = frequency if frequency_string != 'Once' if frequency_integer == 1 frequency_string = frequency_string . delete_suffix ( 's' ) end frequency_string = frequency_string . sub ( 'X' , frequency_integer . to_s ) end frequency_string end
Parse frequency and frequency integer into readable string
Parse frequency and frequency integer into readable string