Sha256: ebf39a488e0ba5622efd760835363e7f6112b79747bd70588529942e1c9cbba6

Contents?: true

Size: 344 Bytes

Versions: 100

Compression:

Stored size: 344 Bytes

Contents

require 'bigdecimal'
require 'bigdecimal/util'

class BigDecimal
  DEFAULT_STRING_FORMAT = 'F'
  def to_formatted_s(*args)
    if args[0].is_a?(Symbol)
      super
    else
      format = args[0] || DEFAULT_STRING_FORMAT
      _original_to_s(format)
    end
  end
  alias_method :_original_to_s, :to_s
  alias_method :to_s, :to_formatted_s
end

Version data entries

100 entries across 95 versions & 12 rubygems

Version Path
activesupport-4.2.11.3 lib/active_support/core_ext/big_decimal/conversions.rb
activesupport-4.2.11.2 lib/active_support/core_ext/big_decimal/conversions.rb
cocoapods-dependency-html-0.0.2 vendor/bundle/gems/activesupport-4.2.11.1/lib/active_support/core_ext/big_decimal/conversions.rb
cocoapods-dependency-html-0.0.1 vendor/bundle/gems/activesupport-4.2.11.1/lib/active_support/core_ext/big_decimal/conversions.rb
activesupport-4.2.11.1 lib/active_support/core_ext/big_decimal/conversions.rb
activesupport-4.2.11 lib/active_support/core_ext/big_decimal/conversions.rb
activesupport-4.2.10 lib/active_support/core_ext/big_decimal/conversions.rb
activesupport-4.2.10.rc1 lib/active_support/core_ext/big_decimal/conversions.rb
activesupport-4.2.9 lib/active_support/core_ext/big_decimal/conversions.rb
activesupport-4.2.9.rc2 lib/active_support/core_ext/big_decimal/conversions.rb
activesupport-4.2.9.rc1 lib/active_support/core_ext/big_decimal/conversions.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/activesupport-4.2.8/lib/active_support/core_ext/big_decimal/conversions.rb
activesupport-4.2.8 lib/active_support/core_ext/big_decimal/conversions.rb
activesupport-4.2.8.rc1 lib/active_support/core_ext/big_decimal/conversions.rb
activesupport-4.2.7.1 lib/active_support/core_ext/big_decimal/conversions.rb
activesupport-4.2.7 lib/active_support/core_ext/big_decimal/conversions.rb
activesupport-4.1.16 lib/active_support/core_ext/big_decimal/conversions.rb
activesupport-4.1.16.rc1 lib/active_support/core_ext/big_decimal/conversions.rb
activesupport-4.2.7.rc1 lib/active_support/core_ext/big_decimal/conversions.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/core_ext/big_decimal/conversions.rb