aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/string
diff options
context:
space:
mode:
authorDamien Mathieu <42@dmathieu.com>2011-07-03 13:09:28 +0200
committerDamien Mathieu <42@dmathieu.com>2011-07-03 13:09:46 +0200
commitb7327241aa01d570817edd2274d48ffd9451ddcd (patch)
tree438fd6a4fcb4d0602387c07974a443a3221017b4 /activesupport/lib/active_support/core_ext/string
parenta1d85a03bd0541faafff43973698df4a9e4973f2 (diff)
downloadrails-b7327241aa01d570817edd2274d48ffd9451ddcd.tar.gz
rails-b7327241aa01d570817edd2274d48ffd9451ddcd.tar.bz2
rails-b7327241aa01d570817edd2274d48ffd9451ddcd.zip
all numerics should be html_safe - Closes #1935
Diffstat (limited to 'activesupport/lib/active_support/core_ext/string')
-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