Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[helpers] Rounding is built into 1.9.3

  • Loading branch information...
commit 962eaa78407eaa285df4e0bf219e6361bf9cd983 1 parent 94d09af
@nesquena nesquena authored
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__)
Please sign in to comment.
Something went wrong with that request. Please try again.