String does not evolve into BigDecimal

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Unknown
    • 9.0.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Numeric strings should evolve into BigDecimal.
       
      The following does not work:
       
       

      class Band
        field :sales, type: BigDecmial
      end
      
      Band.create!(sales: BigDecimal(100))
      
      Band.where(sales: '100').count #=> 0  incorrect!

       
       
      Note that this works correctly for Integer, Float, etc. so it's clearly a bug.
       

              Assignee:
              Oleg Pudeyev (Inactive)
              Reporter:
              Johnny Shields
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: