module SurveyorWarehouse::Extensions::Question
Public Instance Methods
valid_data_export_identifier?()
click to toggle source
A question's data_export_identifier should follow the format 'table.column' (e.g. 'patients.name')
# File lib/surveyor_warehouse/extensions/question.rb, line 11 def valid_data_export_identifier? dei = self.try(:data_export_identifier) dei.present? && dei.split('.').size == 2 end