Skip to content

Commit d80ced6

Browse files
committed
Fix rails 7.1 removal, use to_fs(:dash) instead of Range#to_s(:dash)
Rails 7.0 was reporting this warning: DEPRECATION WARNING: Range#to_s(:dash) is deprecated. Please use Range#to_fs(:dash) instead. (called from port_range_helper at /home/runner/work/manageiq-ui-classic/manageiq-ui-classic/app/helpers/security_group_helper/textual_summary.rb:105)
1 parent abab01f commit d80ced6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/helpers/security_group_helper/textual_summary.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def port_range_helper(rule)
102102
elsif rule.port == rule.end_port
103103
rule.port.to_s
104104
else
105-
rule.port_range.to_s(:dash)
105+
rule.port_range.to_fs(:dash)
106106
end
107107
end
108108
end

0 commit comments

Comments
 (0)