|
|
|
|
@ -139,6 +139,9 @@ class BulkUpload::Lettings::RowParser
|
|
|
|
|
|
|
|
|
|
validates :field_1, presence: true, inclusion: { in: (1..12).to_a } |
|
|
|
|
validates :field_4, presence: { if: proc { [1, 3, 5, 7, 9, 11].include?(field_1) } } |
|
|
|
|
validates :field_96, presence: true |
|
|
|
|
validates :field_97, presence: true |
|
|
|
|
validates :field_98, presence: true |
|
|
|
|
|
|
|
|
|
def attribute_set |
|
|
|
|
@attribute_set ||= instance_variable_get(:@attributes) |
|
|
|
|
|