Module: CustomField::Mixin::ClassMethods

Defined in:
backend/app/model/reports/custom_field.rb

Instance Method Summary collapse

Instance Method Details

#register_field(record_type, field_name, data_type, options = {}) ⇒ Object



73
74
75
76
# File 'backend/app/model/reports/custom_field.rb', line 73

def register_field(record_type, field_name, data_type, options = {})
  CustomField.register_field(record_type, field_name, data_type,
    options)
end

#register_subreport(field_name, record_types, options = {}) ⇒ Object



68
69
70
71
# File 'backend/app/model/reports/custom_field.rb', line 68

def register_subreport(field_name, record_types, options = {})
  CustomField.register_subreport(self, field_name, record_types,
    options)
end