Skip to content

Commit

Permalink
A fix for the HTML safe translation was added to Rails 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sej3506 committed Oct 29, 2024
1 parent 05d132e commit 915ee03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/support/html_escape_helper.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module HTMLEscapeHelper
def translated_string(key)
if [7.0, 7.1].include?(Rails::VERSION::STRING.to_f)
if [7.0].include?(Rails::VERSION::STRING.to_f)
ERB::Util.html_escape_once(I18n.t(key))
else
I18n.t(key)
Expand Down

0 comments on commit 915ee03

Please sign in to comment.