diff options
author | Andrei Kulakov <krugliy@gmail.com> | 2011-03-10 01:22:56 +0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-03-10 01:30:51 +0800 |
commit | 532b77077fc97211cb9f8d047116a72b8cd286a7 (patch) | |
tree | e5c517e70e4e6de9d3e255f91edf0bf1c1e2841c /activesupport | |
parent | 03cbd9672cfc142842c95aae0fb27b8eb27e6990 (diff) | |
download | rails-532b77077fc97211cb9f8d047116a72b8cd286a7.tar.gz rails-532b77077fc97211cb9f8d047116a72b8cd286a7.tar.bz2 rails-532b77077fc97211cb9f8d047116a72b8cd286a7.zip |
Use Rubys own Float#round method in versions 1.9 and above
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/core_ext/float.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/float.rb b/activesupport/lib/active_support/core_ext/float.rb index 7570471b95..4f6f606680 100644 --- a/activesupport/lib/active_support/core_ext/float.rb +++ b/activesupport/lib/active_support/core_ext/float.rb @@ -1 +1 @@ -require 'active_support/core_ext/float/rounding' +require 'active_support/core_ext/float/rounding' if RUBY_VERSION < '1.9' |