Logidze v0.12.0 Release Notes

Release Date: 2020-01-02 // 26 days ago
    • PR #143 Add :transactional option to #with_meta and #with_responsible ([@oleg-kiviljov][])

    0️⃣ Now it's possible to set meta and responsible without wrapping the block into a DB transaction. For backward compatibility :transactional option by default is set to true.


    Logidze.with_meta({ip: request.ip}, transactional: false) do


    Logidze.with_responsible(user.id, transactional: false) do

Previous changes from v0.11.0

  • 🌲 This release reverts some changes made in 0.10.0 related to ignore_log_data functionality.

    🔄 Changes

    • 👻 Return nil when log_data is not loaded instead of raising an exception.

    We cannot distinguish between not loaded log_data and not-yet-created (i.e. for new records).
    The latter could be used in frameworks/gems (example).

    • 🌲 Only allow specifying ignore_log_data at boot time without runtime modifications.

    Playing with ActiveRecord default scopes wasn't a good idea. We fallback to a more explicit way of telling AR
    when to load or ignore the log_data column.

    🌲 This change removes Logidze.with_log_data method.