Replace BigDecimal.new with BigDecimal() (bson)

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Minor - P4
    • bson-4.5.0
    • Affects Version/s: None
    • Component/s: BSON
    • Environment:
      ruby 2.6.0
    • None
    • None
    • None
    • None
    • None
    • None

      BigDecimal(1) works down to ruby 1.9.

      The driver itself does not use BigDecimal, but bson-ruby does.


      `warning: BigDecimal.new is deprecated` reported with ruby 2.6.0

      ruby/2.6.0/lib/ruby/gems/mongoid-6.4.2/lib/mongoid/extensions/big_decimal.rb:56: warning: BigDecimal.new is deprecated; use BigDecimal() method instead.

      Refer Ruby/BigDecimal

            Assignee:
            Oleg Pudeyev (Inactive)
            Reporter:
            Oshan Wisumperuma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: