From 426f42c09287c218466ccb060552a8717be0513f Mon Sep 17 00:00:00 2001 From: aditya-kapoor Date: Tue, 14 May 2013 19:36:35 +0530 Subject: Added a blank space and removed to_sym --- .../lib/active_support/core_ext/string/output_safety.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'activesupport/lib/active_support/core_ext') 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 -- cgit v1.2.3