make annotation storing and retrieving more generic

This commit is contained in:
Pfingstfrosch
2020-06-04 22:14:21 +02:00
parent 88783ffede
commit 74cc3dce22
4 changed files with 25 additions and 13 deletions
+2 -2
View File
@@ -1,9 +1,9 @@
module Crawlers::TissCrawlerHelper
def render_personal_annotations(id, object)
def render_personal_annotations(id, personal_annotation)
render :partial => "crawlers/personal_annotations",
:locals => {
:cur_id => id,
:personal_annotation => (object['personal_annotation'] if object)
:personal_annotation => personal_annotation
}
end
end