execjs-rails 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 80bdf7fc102184fd8004662dcf83d78911eb2dfe
4
- data.tar.gz: 23e4de4e8807b9d5926660f97c05ed5c03d4ba9b
3
+ metadata.gz: 94df28a64d5a641bf934626cafaa646ce3a7cad7
4
+ data.tar.gz: ca595a9af71cbb2c95a64c9346a8d27ee6750904
5
5
  SHA512:
6
- metadata.gz: f7b878e2d08df644cd50655d9581af1d2466740ff52683e02fc70912e1c677844d508477c7f2955360d447fe5363be3c6978dd222ef9fa0abd9d83211c1a7fec
7
- data.tar.gz: 02679bdb91028026d5b3542772b6946e1901b0bfb03a90b8aa1a683e90a5e793095cfc61cfe460e3e070f4ff5e5c4a59fa312a3fbd53c0788cc1fa8f5fafa009
6
+ metadata.gz: dd8472bf22488bd331aef366a575a9769e1fe9f5868e4079444055d98795e6db419df18fd411b0d96e5e0be7725178fa48fb92f1f9d5712d907ff6e9d994b738
7
+ data.tar.gz: 3bc750dad9d6159eca733d4512b6748eeca9f52bbbe54eb95056fd141115efe8098ed47e14230b898d4a64fed17176c665304bc26b0672537d8c1ecbc095d16c
@@ -14,7 +14,7 @@ module ExecJS
14
14
  controller: view.controller_name,
15
15
  action: view.action_name,
16
16
  csrf_token: view.form_authenticity_token || nil,
17
- current_user: view.current_user || nil
17
+ current_user: view.try(:current_user)
18
18
  }).merge!(options.stringify_keys).as_json
19
19
  end
20
20
 
@@ -1,5 +1,5 @@
1
1
  module ExecJS
2
2
  module Rails
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: execjs-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Revelry Labs, LLC