Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added a blank space and removed to_sym

  • Loading branch information...
commit 426f42c09287c218466ccb060552a8717be0513f 1 parent 069ea45
@aditya-kapoor aditya-kapoor authored
View
9 activesupport/lib/active_support/core_ext/string/output_safety.rb
@@ -172,14 +172,15 @@ def encode_with(coder)
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
Please sign in to comment.
Something went wrong with that request. Please try again.