move the conditional definition of Float#round down

Rails 3 cherry-picks as little as possible from Active Support. In particular
the framework requires the files where extensions are exactly defined, rather
than convenience entry points like float.rb and friends. Because of that, it
is better to define conditionally rather than require conditionally.
This commit is contained in:
Xavier Noria
2011-03-09 18:51:15 +01:00
parent 32b5c4b77a
commit ebe4fa5fbe
2 changed files with 2 additions and 2 deletions

View File

@@ -1 +1 @@
require 'active_support/core_ext/float/rounding' if RUBY_VERSION < '1.9'
require 'active_support/core_ext/float/rounding'

View File

@@ -16,4 +16,4 @@ class Float
precisionless_round
end
end
end
end if RUBY_VERSION < '1.9'