check current attributes, it should be helpful https://api.rubyonrails.org/v8.0.0/classes/ActiveSupport/CurrentAttributes.html