Skip to content
Browse files

[helpers] Rounding is built into 1.9.3

  • Loading branch information...
1 parent 94d09af commit 962eaa78407eaa285df4e0bf219e6361bf9cd983 @nesquena nesquena committed Nov 16, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 padrino-helpers/lib/padrino-helpers.rb
View
6 padrino-helpers/lib/padrino-helpers.rb
@@ -4,10 +4,14 @@
require 'enumerator'
require 'active_support/time_with_zone' # next extension depends on this
require 'active_support/core_ext/string/conversions' # to_date
-require 'active_support/core_ext/float/rounding' # round
require 'active_support/option_merger' # with_options
require 'active_support/core_ext/object/with_options' # with_options
require 'active_support/inflector' # humanize
+begin
+ require 'active_support/core_ext/float/rounding' # round
+rescue LoadError # built into 1.9.3
+ # do nothing
+end
FileSet.glob_require('padrino-helpers/**/*.rb', __FILE__)

0 comments on commit 962eaa7

Please sign in to comment.
Something went wrong with that request. Please try again.