app/controllers/surveys/response_controller.rb
#
#
# set the tag list on the respondent for the context
#
set the tag list on the respondent for the context
set the tag list on the respondent for the context
def saveTags(respondent, responseText, context)
    if getTagOwner
      getTagOwner.tag(respondent, :with => responseText, :on => context)
    else
      respondent.set_tag_list_on(context, responseText)
    end
    respondent.save!
    person = respondent.person
    if person
      if getTagOwner
        getTagOwner.tag(person, :with => responseText, :on => context)
      else
        person.set_tag_list_on(context, responseText)
      end
      person.save!
    end
  end
def saveTags ( respondent , responseText , context ) if getTagOwner getTagOwner . tag ( respondent , :with => responseText , :on => context ) else respondent . set_tag_list_on ( context , responseText ) end respondent . save! person = respondent . person if person if getTagOwner getTagOwner . tag ( person , :with => responseText , :on => context ) else person . set_tag_list_on ( context , responseText ) end person . save! end end
set the tag list on the respondent for the context
set the tag list on the respondent for the context
# attach tags to the underlying person as well
respondent
<not_specific>
responseText
<not_specific>
context
<not_specific>