Skip to content

Commit

Permalink
REverted some functionality of log_model_changes to before refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
schinery committed Mar 28, 2019
1 parent 1758847 commit 9d797ac
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/logga/active_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,7 @@ def log_model_changes
return if should_not_log?

field_changes = previous_changes.reject { |k, _| reject_change?(k) }
return if field_changes.blank?

body = field_changes_to_message(field_changes)
create_log_entry(author_data.merge(body: body)) if body.present?
log_field_changes(field_changes)
end

private
Expand Down

0 comments on commit 9d797ac

Please sign in to comment.