app/helpers/application_helper.rb
# Determine the type of report (performance/trend/chargeback) based on the model
Determine the type of report (performance/trend/chargeback) based on the model
Determine the type of report ( performance / trend / chargeback ) based on the model
def model_report_type(model)
    if model
      if model.ends_with?("Performance", "MetricsRollup")
        return :performance
      elsif model == UiConstants::TREND_MODEL
        return :trend
      elsif model == "Chargeback"
        return :chargeback
      end
    end
    nil
  end
def model_report_type ( model ) if model if model . ends_with? ( "Performance" , "MetricsRollup" ) return :performance elsif model == UiConstants :: TREND_MODEL return :trend elsif model == "Chargeback" return :chargeback end end nil end
Determine the type of report (performance/trend/chargeback) based on the model
Determine the type of report ( performance / trend / chargeback ) based on the model
model
<not_specific>