aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/string/output_safety.rb
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2011-09-22 02:13:04 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2011-09-22 02:13:04 +0530
commit8aa537c9452d40aeaf25e6d7e0c5bb1205b05d1a (patch)
treeeb8d997c9c9c1915222d642d385239e2bc0f9da5 /activesupport/lib/active_support/core_ext/string/output_safety.rb
parentcaa95ab6d826f4bb112c2911849ce03c7312af11 (diff)
downloadrails-8aa537c9452d40aeaf25e6d7e0c5bb1205b05d1a.tar.gz
rails-8aa537c9452d40aeaf25e6d7e0c5bb1205b05d1a.tar.bz2
rails-8aa537c9452d40aeaf25e6d7e0c5bb1205b05d1a.zip
fix incorrect comment
Diffstat (limited to 'activesupport/lib/active_support/core_ext/string/output_safety.rb')
-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 3ae3d64fa4..94999807dd 100644
--- a/activesupport/lib/active_support/core_ext/string/output_safety.rb
+++ b/activesupport/lib/active_support/core_ext/string/output_safety.rb
@@ -144,7 +144,7 @@ module ActiveSupport #:nodoc:
UNSAFE_STRING_METHODS.each do |unsafe_method|
class_eval <<-EOT, __FILE__, __LINE__ + 1
def #{unsafe_method}(*args, &block) # def capitalize(*args, &block)
- to_str.#{unsafe_method}(*args, &block) # to_str.gsub(*args, &block)
+ to_str.#{unsafe_method}(*args, &block) # to_str.capitalize(*args, &block)
end # end
def #{unsafe_method}!(*args) # def capitalize!(*args)