aboutsummaryrefslogblamecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/big_decimal/conversions.rb
blob: decd4e1699c2399ee1574510f88a1a5f52d56a36 (plain) (tree)
1
2
3
4
5
6
7
8
9

                         
 

                                             
                          
                   
       
     
   

                                                              
require "bigdecimal"
require "bigdecimal/util"

module ActiveSupport
  module BigDecimalWithDefaultFormat #:nodoc:
    def to_s(format = "F")
      super(format)
    end
  end
end

BigDecimal.prepend(ActiveSupport::BigDecimalWithDefaultFormat)