Logidze v0.10.0 Release Notes

Release Date: 2019-05-15 // almost 5 years ago
  • ๐Ÿ”„ Changes

    • ๐Ÿ’Ž Ruby >= 2.4 is required

    ๐Ÿ”‹ Features

    • ๐ŸŒฒ Added global configuration for :ignore_log_data option.

    0๏ธโƒฃ Now it's possible to avoid loading log_data from the DB by default with

    Logidze.ignore\_log\_data\_by\_default = true
    

    ๐ŸŒฒ In cases when ignore_log_data: false is explicitly passed to the ignore_log_data the default setting is being overriden. Also, it's possible to change it inside the block:

    Logidze.with\_log\_data doPost.find(params[:id]).log\_dataend
    

    PR #111

    • ๐ŸŒฒ Added #reset_log_data API to nullify log_data column.

    Now you can reset the history for a record (or records):

    # for single recordrecord.reset\_log\_data# for relationUser.where(active: true).reset\_log\_data
    

    PR #110