Skip to content

Commit 52cee12

Browse files
Enable fusion forbidden field validations
1 parent a241f2b commit 52cee12

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

server/app/models/variants/fusion_variant.rb

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ module Variants
22
class FusionVariant < Variant
33
has_one :fusion, through: :feature, source: :feature_instance, source_type: 'Features::Fusion'
44

5-
#TODO - make this
6-
#validates_with FusionVariantValidator
7-
#check feature partner status and corresponding stubbed coords
8-
95
has_one :five_prime_coordinates,
106
->() { where(coordinate_type: 'Five Prime Fusion Coordinate') },
117
foreign_key: 'variant_id',
@@ -88,10 +84,10 @@ def generate_name
8884

8985
def forbidden_fields
9086
[
91-
# :ncit_id,
92-
# :hgvs_description_ids,
93-
# :clinvar_entry_ids,
94-
# :allele_registry_id,
87+
:ncit_id,
88+
:hgvs_description_ids,
89+
:clinvar_entry_ids,
90+
:allele_registry_id,
9591
]
9692
end
9793

0 commit comments

Comments
 (0)