summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/drawing/num_data_source.rb
diff options
context:
space:
mode:
authorJonathan Tron <[email protected]>2014-02-26 14:14:38 +0100
committerJonathan Tron <[email protected]>2014-02-26 14:14:38 +0100
commit4400e233c0d0ab57652619a0d3eaa0cec4e9c358 (patch)
tree957c211991bba2ffd5d99b77141b1cb03b5317df /lib/axlsx/drawing/num_data_source.rb
parent9f8b707ff24b97bca7701e4f361e055fe41e5fd0 (diff)
downloadcaxlsx-4400e233c0d0ab57652619a0d3eaa0cec4e9c358.tar.gz
caxlsx-4400e233c0d0ab57652619a0d3eaa0cec4e9c358.zip
Do not put Axlsx::DefinedName#name in serialized_attributes (fixes #285)
When using serialized_attributes both attribute's name and value are camelcased, in `Axlsx::DefinedName` the values starts with `_xmln` which is then transformed in `Xmln`. The fix proposed on #285 does not work because then other `Axlsx::DefinedName` attributes name are no more camelcased (`localSheetId` become `local_sheet_id` for instance). As proposed by @randym in #285, this commit only make a special case of the name and let the other attributes go through serialized_attributes. Adding a test on it revealed a wrong test which would have catched similar error but was not because of value returned by `doc.xpath`.
Diffstat (limited to 'lib/axlsx/drawing/num_data_source.rb')
0 files changed, 0 insertions, 0 deletions