Skip to content

Commit 0253f58

Browse files
committed
Update genome.rb
1 parent b183a9c commit 0253f58

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

app/models/genome.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,12 @@ def miga_project_path
8585
end
8686

8787
def all_public
88-
where(typified_names: Name.all_public)
88+
# TODO: Refactor to improve efficiency
89+
where(
90+
id: Name.all_public
91+
.where(nomenclatural_type_type: :Genome)
92+
.pluck(:nomenclatural_type_id)
93+
)
8994
end
9095
end
9196

0 commit comments

Comments
 (0)