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 CHANGED
@@ -30,7 +30,10 @@ module Onelinejson
30
30
  controller: self.class.name,
31
31
  date: Time.now.utc.iso8601,
32
32
  }
33
- payload[:request][:user_id] = @current_user_id || (@current_user && @current_user.id)
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
 
@@ -1,3 +1,3 @@
1
1
  module Onelinejson
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onelinejson
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: