Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Edited lib/acts_as_audited/audit_sweeper.rb via GitHub

  • Loading branch information...
commit 56b00d0e3003ede8ff24d34153860c8185924ce2 1 parent 3c0cf05
dwarburton authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/acts_as_audited/audit_sweeper.rb
View
2  lib/acts_as_audited/audit_sweeper.rb
@@ -4,7 +4,7 @@ class AuditSweeper < ActionController::Caching::Sweeper
def before_create(audit)
audit.user ||= current_user
- audit.remote_address = controller.try(:request).try(:remote_ip)
+ audit.remote_address = controller.try(:request).try(:ip)
end
def current_user
Please sign in to comment.
Something went wrong with that request. Please try again.