diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2011-07-03 18:15:47 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2011-07-03 18:15:47 +0530 |
commit | caab9f4e95bff87c3208084271d70583bc31930e (patch) | |
tree | 038e66be766d7a0a01d0aed767b6f7ad8da65d11 /activesupport | |
parent | a715c37218d0ebc46d48104d474a4ef9a3acda9a (diff) | |
download | rails-caab9f4e95bff87c3208084271d70583bc31930e.tar.gz rails-caab9f4e95bff87c3208084271d70583bc31930e.tar.bz2 rails-caab9f4e95bff87c3208084271d70583bc31930e.zip |
document meta methods
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/core_ext/string/output_safety.rb | 16 |
1 files changed, 8 insertions, 8 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..07cb2187e3 100644 --- a/activesupport/lib/active_support/core_ext/string/output_safety.rb +++ b/activesupport/lib/active_support/core_ext/string/output_safety.rb @@ -137,14 +137,14 @@ module ActiveSupport #:nodoc: UNSAFE_STRING_METHODS.each do |unsafe_method| class_eval <<-EOT, __FILE__, __LINE__ - def #{unsafe_method}(*args, &block) - to_str.#{unsafe_method}(*args, &block) - end - - def #{unsafe_method}!(*args) - @dirty = true - super - end + def #{unsafe_method}(*args, &block) # def gsub(*args, &block) + to_str.#{unsafe_method}(*args, &block) # to_str.gsub(*args, &block) + end # end + + def #{unsafe_method}!(*args) # def gsub!(*args) + @dirty = true # @dirty = true + super # super + end # end EOT end |