summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/workbook/worksheet/cell.rb
diff options
context:
space:
mode:
authorWeston Ganger <[email protected]>2022-10-09 13:50:56 -0700
committerWeston Ganger <[email protected]>2022-10-09 13:50:56 -0700
commit8694cab86130b9385231a21994b2f13f4c07924e (patch)
treec009a6d0c9c8dba710957e9edc711e1f75b51947 /lib/axlsx/workbook/worksheet/cell.rb
parentfd8366970d9cb3f5fb431ba6c40a2a2ac2737615 (diff)
downloadcaxlsx-8694cab86130b9385231a21994b2f13f4c07924e.tar.gz
caxlsx-8694cab86130b9385231a21994b2f13f4c07924e.zip
Remove active_support dependency from axlsx_styler
Diffstat (limited to 'lib/axlsx/workbook/worksheet/cell.rb')
-rw-r--r--lib/axlsx/workbook/worksheet/cell.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/axlsx/workbook/worksheet/cell.rb b/lib/axlsx/workbook/worksheet/cell.rb
index 626cf60f..9ab93e61 100644
--- a/lib/axlsx/workbook/worksheet/cell.rb
+++ b/lib/axlsx/workbook/worksheet/cell.rb
@@ -84,7 +84,6 @@ module Axlsx
attr_accessor :raw_style
- require 'active_support/core_ext/hash/deep_merge' ### TODO: can/should we remove this dependency
# The index of the cellXfs item to be applied to this cell.
# @param [Hash] styles
# @see Axlsx::Styles
@@ -92,9 +91,7 @@ module Axlsx
def add_style(style)
self.raw_style ||= {}
- # using deep_merge from active_support:
- # with regular Hash#merge adding borders fails miserably
- new_style = raw_style.deep_merge(style)
+ new_style = Axlsx.hash_deep_merge(raw_style, style)
all_edges = [:top, :right, :bottom, :left]