-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dont apply alias revisions to simple mps
- Loading branch information
Showing
1 changed file
with
12 additions
and
5 deletions.
There are no files selected for viewing
17 changes: 12 additions & 5 deletions
17
server/app/models/actions/suggest_molecular_profile_revision.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
class Actions::SuggestMolecularProfileRevision < Actions::SuggestRevisionSet | ||
def editable_fields | ||
[ | ||
:description, | ||
:source_ids, | ||
:molecular_profile_alias_ids, | ||
] | ||
if existing_obj.is_complex? | ||
[ | ||
:description, | ||
:source_ids, | ||
:molecular_profile_alias_ids, | ||
] | ||
else | ||
[ | ||
:description, | ||
:source_ids, | ||
] | ||
end | ||
end | ||
end |