lib/axlsx/workbook/worksheet/table.rb in axlsx-1.3.6 vs lib/axlsx/workbook/worksheet/table.rb in axlsx-2.0.0
- old
+ new
@@ -45,13 +45,14 @@
# @return [String]
def pn
"#{TABLE_PN % (index+1)}"
end
- # The relation reference id for this table
+ # The relationship id for this table.
+ # @see Relationship#Id
# @return [String]
def rId
- "rId#{index+1}"
+ @sheet.relationships.for(self).Id
end
# The name of the Table.
# @param [String, Cell] v
# @return [Title]