0.10.0
Changes
- Ruby >= 2.4 is required
Features
- Added global configuration for
:ignore_log_data
option.
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 do
Post.find(params[:id]).log_data
end
PR #111
- Added
#reset_log_data
API to nullifylog_data
column.
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_data
PR #110