Skip to content

Commit

Permalink
add IP address in backup log
Browse files Browse the repository at this point in the history
  • Loading branch information
arpitjalan committed Feb 28, 2016
1 parent 9cea4dd commit 43e3182
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/services/staff_action_logger.rb
Expand Up @@ -328,7 +328,8 @@ def log_revoke_moderation(user, opts={})

def log_backup_operation(opts={})
UserHistory.create(params(opts).merge({
action: UserHistory.actions[:backup_operation]
action: UserHistory.actions[:backup_operation],
ip_address: @admin.ip_address.to_s
}))
end

Expand Down

0 comments on commit 43e3182

Please sign in to comment.