From e466414753a349f291929865ad8dbc507b5f32a3 Mon Sep 17 00:00:00 2001 From: Sijawusz Pur Rahnama Date: Sat, 20 May 2023 04:26:17 +0200 Subject: [PATCH] Remove obsolete monkey patch --- src/ext/big_decimal.cr | 10 ---------- src/money/money/json.cr | 1 - 2 files changed, 11 deletions(-) delete mode 100644 src/ext/big_decimal.cr diff --git a/src/ext/big_decimal.cr b/src/ext/big_decimal.cr deleted file mode 100644 index eab9224..0000000 --- a/src/ext/big_decimal.cr +++ /dev/null @@ -1,10 +0,0 @@ -# https://github.com/crystal-lang/crystal/issues/7856 -struct BigDecimal - def to_json(json : JSON::Builder) - json.string(self) - end - - def to_json_object_key - to_s - end -end diff --git a/src/money/money/json.cr b/src/money/money/json.cr index 2d02069..9732779 100644 --- a/src/money/money/json.cr +++ b/src/money/money/json.cr @@ -1,6 +1,5 @@ require "json" require "big/json" -require "../../ext/big_decimal" struct Money include JSON::Serializable