Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-4681

Replace BigDecimal.new with BigDecimal()

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 7.1.0.rc0, 7.0.3, 6.4.4
    • Affects Version/s: 6.4.2
    • Component/s: None
    • Labels:
    • Environment:
      ruby 2.6.0

      BigDecimal(1) works down to ruby 1.9.


      `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@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oshanz Oshan Wisumperuma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: