0.10.0
Changes
- Ruby >= 2.4 is required
Features
- Added global configuration for
:ignore_log_dataoption.
Now it's possible to avoid loading log_data from the DB by default with
Logidze.ignore_log_data_by_default = trueIn 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 do
Post.find(params[:id]).log_data
endPR #111
- Added
#reset_log_dataAPI to nullifylog_datacolumn.
Now you can reset the history for a record (or records):
# for single record
record.reset_log_data
# for relation
User.where(active: true).reset_log_dataPR #110