diff options
| author | Randy Morgan <[email protected]> | 2013-08-17 13:23:43 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2013-08-17 13:23:43 +0900 |
| commit | 7f39700f30ffdf7d3933e61bf244a41aeb8dee6c (patch) | |
| tree | c6615098a754cd9c16d7cb2ce515c8647e0cd097 | |
| parent | c65ece00fbeaaca5b3b1a87511aa410b56c40b93 (diff) | |
| download | caxlsx-7f39700f30ffdf7d3933e61bf244a41aeb8dee6c.tar.gz caxlsx-7f39700f30ffdf7d3933e61bf244a41aeb8dee6c.zip | |
ensure that values are camelized for serialized attributes
| -rw-r--r-- | lib/axlsx/util/serialized_attributes.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/axlsx/util/serialized_attributes.rb b/lib/axlsx/util/serialized_attributes.rb index e421984b..80ac3c46 100644 --- a/lib/axlsx/util/serialized_attributes.rb +++ b/lib/axlsx/util/serialized_attributes.rb @@ -47,12 +47,11 @@ module Axlsx end key_value_pairs.merge! additional_attributes key_value_pairs.each do |key, value| - str << "#{Axlsx.camel(key, false)}=\"#{value}\" " + str << "#{Axlsx.camel(key, false)}=\"#{Axlsx.camel(value, false)}\" " end str end - # serialized instance values at text nodes on a camelized element of the # attribute name. You may pass in a block for evaluation against non nil # values. We use an array for element attributes becuase misordering will |
