Initial commit

This commit is contained in:
Yaser
2026-08-13 19:50:53 +03:30
commit 38084458fe
879 changed files with 95198 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
# encoding: UTF-8
# frozen_string_literal: true
class String
# Similar to how ActiveRecord does. See lib/active_record/type/decimal.rb
def to_d
str_decimal = delete_suffix('.')
return BigDecimal(0) if str_decimal.blank?
BigDecimal(str_decimal)
end
end