spec/support/html_escape_helper.rb in clearance-2.8.0 vs spec/support/html_escape_helper.rb in clearance-2.9.0
- old
+ new
@@ -1,7 +1,7 @@
module HTMLEscapeHelper
def translated_string(key)
- if Rails.version >= "7.0"
+ if [7.0].include?(Rails::VERSION::STRING.to_f)
ERB::Util.html_escape_once(I18n.t(key))
else
I18n.t(key)
end
end