aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-09-14 13:26:39 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2014-09-14 13:26:39 -0700
commit97ef636191933f1d4abc92fc10871e6d1195285c (patch)
treea4c52dd5a013f28fa98f366524ad0196f6c1a10b
parente47b3e15edc8e4688611427768c51b9269d01293 (diff)
downloadrails-97ef636191933f1d4abc92fc10871e6d1195285c.tar.gz
rails-97ef636191933f1d4abc92fc10871e6d1195285c.tar.bz2
rails-97ef636191933f1d4abc92fc10871e6d1195285c.zip
Stop nil checking on safe_append=
ERB compiler guarantees safe_append= will be called with a string, so nil checks don't make sense. Anything else calling this method should check for nil themselves before calling
-rw-r--r--actionview/lib/action_view/buffers.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/actionview/lib/action_view/buffers.rb b/actionview/lib/action_view/buffers.rb
index 361a0dccbe..50bc315700 100644
--- a/actionview/lib/action_view/buffers.rb
+++ b/actionview/lib/action_view/buffers.rb
@@ -13,10 +13,6 @@ module ActionView
end
alias :append= :<<
- def safe_concat(value)
- return self if value.nil?
- super(value.to_s)
- end
alias :safe_append= :safe_concat
end