We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f6bd87 commit ef91f42Copy full SHA for ef91f42
lib/phi_attrs/phi_record.rb
@@ -553,7 +553,7 @@ def wrap_phi
553
# @return [Array<String>] log key for an instance of this class
554
#
555
def phi_log_keys
556
- @__phi_log_id = persisted? ? "Key: #{attributes[self.class.primary_key]}" : "Object: #{object_id}"
+ @__phi_log_id = persisted? ? "Key: #{public_send(self.class.primary_key)}" : "Object: #{object_id}"
557
@__phi_log_keys = [PHI_ACCESS_LOG_TAG, self.class.name, @__phi_log_id]
558
end
559
0 commit comments