Files
ubicloud/helpers/general.rb
Jeremy Evans c847e3d79b Reduce duplication for postgres firewall rule patch/delete routes
Use r.is to check for fully routed path only once instead of twice.
Hoist authorization and firewall rule retrieval and checking to
the r.is block.

Move non-database code out of the DB.transaction block.

This calls check_found_object multiple times in a route, which
raises a duplicate authorization check exception.  Modify
check_found_object so it will not raise a duplicate authorization
check exception.
2025-06-25 07:27:46 +09:00

8.1 KiB