Sha256: 09ac6f08c6959ec745cdb627e78e2181e0dfe6f6ec258669895348773890f77d
Contents?: true
Size: 578 Bytes
Versions: 6
Compression:
Stored size: 578 Bytes
Contents
class ReportResult < ActiveRecord::Base # # RELATIONS # belongs_to :report has_one :report_template, :through => :report # # MODIFICATIONS # serialize :data 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 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 end
Version data entries
6 entries across 6 versions & 1 rubygems