onelinejson 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/onelinejson.rb +4 -1
- data/lib/onelinejson/version.rb +1 -1
- metadata +1 -1
data/lib/onelinejson.rb
CHANGED
@@ -30,7 +30,10 @@ module Onelinejson
|
|
30
30
|
controller: self.class.name,
|
31
31
|
date: Time.now.utc.iso8601,
|
32
32
|
}
|
33
|
-
|
33
|
+
u_id = @current_user_id || (@current_user && @current_user.id)
|
34
|
+
if u_id.present?
|
35
|
+
payload[:request][:user_id] = u_id.to_i
|
36
|
+
end
|
34
37
|
end
|
35
38
|
end
|
36
39
|
|
data/lib/onelinejson/version.rb
CHANGED