add IP address in backup log

This commit is contained in:
Arpit Jalan 2016-02-28 08:44:27 +05:30
parent 9cea4dd04c
commit 43e3182a79

View File

@ -328,7 +328,8 @@ class StaffActionLogger
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