diff options
author | aditya-kapoor <aditya.kapoor@vinsol.com> | 2013-05-14 19:36:35 +0530 |
---|---|---|
committer | aditya-kapoor <aditya.kapoor@vinsol.com> | 2013-05-14 19:36:35 +0530 |
commit | 426f42c09287c218466ccb060552a8717be0513f (patch) | |
tree | f2535029155cac4cc753494e9cb0468ef258f8f6 /activesupport/lib | |
parent | 069ea45c5d4b0215d4aa3ce57316cfbc8db5ba9e (diff) | |
download | rails-426f42c09287c218466ccb060552a8717be0513f.tar.gz rails-426f42c09287c218466ccb060552a8717be0513f.tar.bz2 rails-426f42c09287c218466ccb060552a8717be0513f.zip |
Added a blank space and removed to_sym
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/core_ext/string/output_safety.rb | 9 |
1 files changed, 5 insertions, 4 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 c368e7f505..7c21abea72 100644 --- a/activesupport/lib/active_support/core_ext/string/output_safety.rb +++ b/activesupport/lib/active_support/core_ext/string/output_safety.rb @@ -172,14 +172,15 @@ module ActiveSupport #:nodoc: UNSAFE_STRING_METHODS.each do |unsafe_method| if String.new.respond_to?(unsafe_method) - define_method(unsafe_method.to_sym) do |*args, &block| - to_str.send(unsafe_method, *args, &block) + define_method(unsafe_method) do |*args, &block| + to_str.send(unsafe_method, *args, &block) end - define_method("#{unsafe_method}!".to_sym) do |*args| + + define_method("#{unsafe_method}!") do |*args| @html_safe = false super(*args) end - end + end end end end |