Navigation Menu

Skip to content

Commit

Permalink
Edited lib/acts_as_audited/audit_sweeper.rb via GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
dwarburton committed Aug 29, 2011
1 parent 3c0cf05 commit 56b00d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/acts_as_audited/audit_sweeper.rb
Expand Up @@ -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
Expand Down

0 comments on commit 56b00d0

Please sign in to comment.