From f4f21d5df678deabdf70dffee16f9416e8a1c8c8 Mon Sep 17 00:00:00 2001 From: Kevin Date: Thu, 5 Jun 2025 10:38:46 -0400 Subject: [PATCH] Updated the code which determines the policy action method to work with Ruby 3.4 changes --- lib/policy_assertions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/policy_assertions.rb b/lib/policy_assertions.rb index aacd4e1..6f7dc2d 100644 --- a/lib/policy_assertions.rb +++ b/lib/policy_assertions.rb @@ -78,7 +78,7 @@ def get_permissions(permissions) def calling_method if PolicyAssertions.config.ruby_version > 1 - caller_locations(3, 1)[0].label + caller_locations(3, 1)[0].label.split('#').last else caller[2][/`.*'/][1..-2] end