Class: ReportResult
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- ReportResult
- Defined in:
- app/models/report_result.rb
Instance Method Summary collapse
Instance Method Details
#human_column_name(field) ⇒ Object
13 14 15 16 17 18 19 |
# File 'app/models/report_result.rb', line 13 def human_column_name(field) if field.starts_with?('_') report_template.human_field_name report.decode_field(field) else report_template.human_calculation_name field end end |
#human_field_value(field, value) ⇒ Object
21 22 23 24 25 26 27 |
# File 'app/models/report_result.rb', line 21 def human_field_value(field, value) if field.starts_with?('_') report_template.report_builder.human_field_value(report.decode_field(field), value) else value end end |