palkan / logidze

Database changes log for Rails
MIT License
1.59k stars 74 forks source link

Meta per request #221

Closed dixpac closed 1 year ago

dixpac commented 1 year ago

Hey!

Would it be possible to setup meta per request, instead of wapping every action in the block like this

Logidze.with_meta({ip: request.ip}) do
  post.save!
end

Main use-case is that I want to insert meta such as (ip, agent) with every event.

dixpac commented 1 year ago

Oops found it here https://github.com/palkan/logidze/issues/202 ...closing