Permalink
Browse files

Edited lib/acts_as_audited/audit_sweeper.rb via GitHub

  • Loading branch information...
1 parent 3c0cf05 commit 56b00d0e3003ede8ff24d34153860c8185924ce2 dwarburton committed Aug 29, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 56b00d0

Please sign in to comment.