Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate safe_level of
ERB.new
in Ruby 2.6
The interface of `ERB.new` will change from Ruby 2.6. > Add :trim_mode and :eoutvar keyword arguments to ERB.new. > Now non-keyword arguments other than first one are softly deprecated > and will be removed when Ruby 2.5 becomes EOL. [Feature #14256] https://github.com/ruby/ruby/blob/2311087b685e8dc0f21f4a89875f25c22f5c39a9/NEWS#stdlib-updates-outstanding-ones-only The following address is related Ruby's commit. ruby/ruby@cc777d0 This PR uses `ERB.version` to switch `ERB.new` interface. Because Padrino supports multiple Ruby versions, it need to use the appropriate interface. Using `ERB.version` instead of `RUBY_VERSON` is based on the following patch. ruby/ruby#1826 This patch is built into Ruby. ruby/ruby@40db89c
- Loading branch information