Permalink
Browse files

Remove deprecated `ActiveSupport::SafeBuffer#prepend`

  • Loading branch information...
rafaelfranca committed Jan 3, 2015
1 parent 481e49c commit e1c8b9f688c56aaedac9466a4343df955b4a67ec
@@ -1,3 +1,7 @@
* Remove deprecated `ActiveSupport::SafeBuffer#prepend`.
*Rafael Mendonça França*
* Remove deprecated methods at `Kernel`.
`silence_stderr`, `silence_stream`, `capture` and `quietly`.
@@ -1,6 +1,5 @@
require 'erb'
require 'active_support/core_ext/kernel/singleton_class'
require 'active_support/deprecation'
class ERB
module Util
@@ -190,11 +189,6 @@ def prepend(value)
super(html_escape_interpolated_argument(value))
end
def prepend!(value)
ActiveSupport::Deprecation.deprecation_warning "ActiveSupport::SafeBuffer#prepend!", :prepend
prepend value
end
def +(other)
dup.concat(other)
end
@@ -667,16 +667,6 @@ def to_s
assert_equal other, "<foo>other"
end
test "Deprecated #prepend! method is still present" do
other = "other".html_safe
assert_deprecated do
other.prepend! "<foo>"
end
assert_equal other, "&lt;foo&gt;other"
end
test "Concatting safe onto unsafe yields unsafe" do
@other_string = "other"

0 comments on commit e1c8b9f

Please sign in to comment.