timcharper-declarative_authorization 0.4.1.3 → 0.4.1.4
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.
|
@@ -171,7 +171,7 @@ module Authorization
|
|
|
171
171
|
|
|
172
172
|
def request_with (user, method, xhr, action, params = {},
|
|
173
173
|
session = {}, flash = {})
|
|
174
|
-
session = session.merge({:user => user, :user_id => user.id})
|
|
174
|
+
session = session.merge({:user => user, :user_id => user && user.id})
|
|
175
175
|
with_user(user) do
|
|
176
176
|
if xhr
|
|
177
177
|
xhr method, action, params, session, flash
|
metadata
CHANGED
|
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
|
|
|
6
6
|
- 0
|
|
7
7
|
- 4
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 0.4.1.
|
|
9
|
+
- 4
|
|
10
|
+
version: 0.4.1.4
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Steffen Bartsch
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2010-04-
|
|
18
|
+
date: 2010-04-29 00:00:00 -06:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|