Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | applies new string literal convention in activesupport/test | Xavier Noria | 2016-08-06 | 1 | -6/+6 |
| | | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default. | ||||
* | Add some assertions for BigDecimal#to_s | Yosuke Kabuto | 2016-05-15 | 1 | -0/+2 |
| | |||||
* | Remove BigDecimal#to_d | David Celis | 2014-02-01 | 1 | -5/+0 |
| | | | | | | This was backported for Ruby 1.8 support and is no longer needed. Signed-off-by: David Celis <me@davidcel.is> | ||||
* | Don't require BigDecimal serialization extension | David Celis | 2014-02-01 | 1 | -8/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rails currently provides an extension to BigDecimal that redefines how it is serialized to YAML. However, as noted in #12467, this does not work as expected. When ActiveSupport is required, BigDecimal YAML serialization does not maintain the object type. It instead ends up serializing the number represented by the BigDecimal itself which, when loaded by YAML later, becomes a Float: ```ruby require 'yaml' require 'bigdecimal' yaml = BigDecimal('13.37').to_yaml YAML.load(yaml).class require 'active_support/all' yaml = BigDecimal('13.37').to_yaml YAML.load(yaml).class ``` @tenderlove posits that we should deprecate the custom BigDecimal serialization and let Ruby handle it. For the time being, users who require this serialization for backwards compatibility can manually `require 'active_support/core_ext/big_decimal/yaml_conversions'`. This will close #12467 and deprecate the custom BigDecimal#to_yaml. Signed-off-by: David Celis <me@davidcel.is> | ||||
* | Removed unnecessary require | Anupam Choudhury | 2013-09-10 | 1 | -1/+0 |
| | |||||
* | Moving NumberHelpers from ActionView to ActiveSupport | Andrew Mutz | 2012-05-27 | 1 | -0/+5 |
| | |||||
* | use AS::TestCase as the base class | Aaron Patterson | 2012-01-05 | 1 | -1/+1 |
| | |||||
* | fixing psych support in big decimal, fixing tests to support YAML 1.1 | Aaron Patterson | 2011-01-21 | 1 | -4/+4 |
| | |||||
* | Fixed various isolated test missing requires within AS. | Josh Kalderimis | 2011-01-12 | 1 | -2/+4 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | adding to_d to BigDecimal | Aaron Patterson | 2011-01-10 | 1 | -0/+15 |