aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-07-03 05:18:57 -0700
committerJosé Valim <jose.valim@gmail.com>2011-07-03 05:18:57 -0700
commit17693a99ef37ca1444fbc9adb855f3ee49bc3102 (patch)
tree438fd6a4fcb4d0602387c07974a443a3221017b4 /activesupport/lib
parenta1d85a03bd0541faafff43973698df4a9e4973f2 (diff)
parentb7327241aa01d570817edd2274d48ffd9451ddcd (diff)
downloadrails-17693a99ef37ca1444fbc9adb855f3ee49bc3102.tar.gz
rails-17693a99ef37ca1444fbc9adb855f3ee49bc3102.tar.bz2
rails-17693a99ef37ca1444fbc9adb855f3ee49bc3102.zip
Merge pull request #1948 from dmathieu/html_safe_numeric
All numerics should be html_safe
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/core_ext/string/output_safety.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/string/output_safety.rb b/activesupport/lib/active_support/core_ext/string/output_safety.rb
index a19b5c95c7..172b7258ef 100644
--- a/activesupport/lib/active_support/core_ext/string/output_safety.rb
+++ b/activesupport/lib/active_support/core_ext/string/output_safety.rb
@@ -67,7 +67,7 @@ class Object
end
end
-class Fixnum
+class Numeric
def html_safe?
true
end