lib/seek/annotation_common.rb
#Updates all annotations as the owner of the entity, using the parameters passed through the web interface Any tags that do not match those passed in are removed as a tagging for this item.
#New tags are assigned to the owner, which defaults to the current user.
Updates all annotations as the owner of the entity, using the parameters passed through the web interface Any tags that do not match those passed in are removed as a tagging for this item.
New tags are assigned to the owner, which defaults to the current user.
Updates all annotations as the owner of the entity using the parameters passed through the web interface Any tags that do not match those passed in are removed as a tagging for this item . New tags are assigned to the owner which defaults to the current user .
def update_annotations(param, entity, attr='tag', owner=User.current_user)
      unless owner.nil?
        entity.tag_annotations(param, attr)
        if immediately_clear_tag_cloud?
          expire_annotation_fragments(attr)
        else
          RebuildTagCloudsJob.new.queue_job
        end
      end
    end
def update_annotations ( param , entity , attr = 'tag' , owner = User . current_user ) unless owner . nil? entity . tag_annotations ( param , attr ) if immediately_clear_tag_cloud? expire_annotation_fragments ( attr ) else RebuildTagCloudsJob . new . queue_job end end end
Updates all annotations as the owner of the entity, using the parameters passed through the web interface Any tags that do not match those passed in are removed as a tagging for this item.
Updates all annotations as the owner of the entity using the parameters passed through the web interface Any tags that do not match those passed in are removed as a tagging for this item .
param
entity
attr
owner
current_user