diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-09-14 13:26:39 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-09-14 13:26:39 -0700 |
commit | 97ef636191933f1d4abc92fc10871e6d1195285c (patch) | |
tree | a4c52dd5a013f28fa98f366524ad0196f6c1a10b | |
parent | e47b3e15edc8e4688611427768c51b9269d01293 (diff) | |
download | rails-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.rb | 4 |
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 |