auditor 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/lib/auditor.rb +2 -2
  2. data/lib/auditor/version.rb +1 -1
  3. metadata +4 -4
@@ -12,8 +12,8 @@ if defined?(ActionController) and defined?(ActionController::Base)
12
12
  require 'auditor/user'
13
13
 
14
14
  ActionController::Base.class_eval do
15
- before_filter do
16
- Auditor::User.current_user = self.current_user if self.respond_to?(:current_user)
15
+ before_filter do |c|
16
+ Auditor::User.current_user = c.send(:current_user) if c.respond_to?(:current_user)
17
17
  end
18
18
  end
19
19
 
@@ -1,3 +1,3 @@
1
1
  module Auditor
2
- VERSION = "2.0.1"
2
+ VERSION = "2.0.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auditor
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 1
10
- version: 2.0.1
9
+ - 2
10
+ version: 2.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jeff Kunkle
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-21 00:00:00 -04:00
18
+ date: 2011-03-22 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency