diff options
| author | Weston Ganger <[email protected]> | 2023-05-01 17:04:42 -0700 |
|---|---|---|
| committer | Weston Ganger <[email protected]> | 2023-05-24 12:52:17 -0700 |
| commit | 3d4e8a7681b8a84f23f86bb77c76a2f57008c843 (patch) | |
| tree | 2705af5cec4c2f51117487c7c5c6bce0e010aeea /lib | |
| parent | 6752225bbb8a9eec905ec02a98f1a25a309c404a (diff) | |
| download | caxlsx-3d4e8a7681b8a84f23f86bb77c76a2f57008c843.tar.gz caxlsx-3d4e8a7681b8a84f23f86bb77c76a2f57008c843.zip | |
Fix axlsx_styler gem error
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/axlsx.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/axlsx.rb b/lib/axlsx.rb index 58096e7c..20af45e0 100644 --- a/lib/axlsx.rb +++ b/lib/axlsx.rb @@ -33,12 +33,8 @@ require 'bigdecimal' require 'set' require 'time' -begin - if Gem.loaded_specs.has_key?("axlsx_styler") - raise StandardError, "Please remove `axlsx_styler` from your Gemfile, the associated functionality is now built-in to `caxlsx` directly." - end -rescue StandardError - # Do nothing +if Gem.loaded_specs.has_key?("axlsx_styler") + raise StandardError, "Please remove `axlsx_styler` from your Gemfile, the associated functionality is now built-in to `caxlsx` directly." end # xlsx generation with charts, images, automated column width, customizable styles |
