Permalink
Browse files

ActionView: Ensure that NumberHelper is requireable on its own

  • Loading branch information...
mcmire committed May 20, 2012
1 parent 74c4e7b commit 478b1cd0b39b7004824c6fe6b607f91fc583e9ca
Showing with 4 additions and 1 deletion.
  1. +4 −1 actionpack/lib/action_view/helpers/number_helper.rb
@@ -1,8 +1,10 @@
# encoding: utf-8
+require 'active_support/i18n'
require 'active_support/core_ext/big_decimal/conversions'
+require 'active_support/core_ext/hash/keys'
require 'active_support/core_ext/object/blank'
-require 'active_support/core_ext/string/output_safety'
+require 'action_view/helpers/output_safety_helper'
module ActionView
# = Action View Number Helpers
@@ -15,6 +17,7 @@ module Helpers #:nodoc:
# Most methods expect a +number+ argument, and will return it
# unchanged if can't be converted into a valid number.
module NumberHelper
+ include OutputSafetyHelper
DEFAULT_CURRENCY_VALUES = { :format => "%u%n", :negative_format => "-%u%n", :unit => "$", :separator => ".", :delimiter => ",",
:precision => 2, :significant => false, :strip_insignificant_zeros => false }

0 comments on commit 478b1cd

Please sign in to comment.