timcharper-declarative_authorization 0.4.1.3 → 0.4.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- - 3
10
- version: 0.4.1.3
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-27 00:00:00 -06:00
18
+ date: 2010-04-29 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency