Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Changeset [ebe4fa5fbe54cd0559c9e5e58d68326630cfb255] by Xavier Noria

Revision ebe4fa5fbe54cd0559c9e5e58d68326630cfb255, committed by Xavier Noria · March 9th, 2011 @ 05:51 PM

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.
https://github.com/rails/rails/commit/ebe4fa5fbe54cd0559c9e5e58d683...

2 changed files

  • M activesupport/lib/active_support/core_ext/float.rb
  • M activesupport/lib/active_support/core_ext/float/rounding.rb