lib/catissue/database.rb
def update_user_address(user, address)
      logger.debug { "Work around caTissue prohibition of #{user} address #{address} update by creating a new address record for a dummy user..." }
      address.identifier = nil
      perform(:create, address) { create_object(address) }
      logger.debug { "Worked around caTissue address update bug by swizzling the #{user} address #{address} identifier." }
      perform(:update, user) { update_object(user) }
      user
    end
def update_user_address(user, address)
      logger.debug { "Work around caTissue prohibition of #{user} address #{address} update by creating a new address record for a dummy user..." }
      address.identifier = nil
      perform(:create, address) { create_object(address) }
      logger.debug { "Worked around caTissue address update bug by swizzling the #{user} address #{address} identifier." }
      perform(:update, user) { update_object(user) }
      user
    end
def update_user_address ( user , address ) logger . debug { "Work around caTissue prohibition of #{user} address #{address} update by creating a new address record for a dummy user..." } address . identifier = nil perform ( :create , address ) { create_object ( address ) } logger . debug { "Worked around caTissue address update bug by swizzling the #{user} address #{address} identifier." } perform ( :update , user ) { update_object ( user ) } user end
Updates the given user address.

 @param [CaTissue::User] the user owner
 @param [CaTissue::Address] the address to update
 @return [CaTissue::User] the updated user
Updates the given user address .