execjs-rails 0.2.2.2 → 0.2.2.3

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: 98f5d7d4483bf8903f59fb04a0c3bac4c83ecb89
4
- data.tar.gz: baaf5d83ce0e099bdc06a02ac53d96e8c6fc995c
3
+ metadata.gz: 46cef59a62e2c73481cd6f6094677eb2b7a591b8
4
+ data.tar.gz: be40c5030c362e070a60641cf55738198f37be1c
5
5
  SHA512:
6
- metadata.gz: 8fbd33ceb0e480021600799a01029e5bc8a53355c35071cce85e216a90d10235a1a24f6bf208306cd8d1b2c22afcf9afdb9a7b08b381506414b14eb3270c9016
7
- data.tar.gz: 43e460d679f2d4602ff0b0816785764b45e61fe5ffb6ef66cef90f2300daa96358fe232d036d0afaee526b3d34a2d8e9cc916cf668c6129659c4d9fa7a3853f6
6
+ metadata.gz: 306e0160dfd35dd42f6f687bf504e657342ffa09fc5499228364fc3e0bb48bc6cfbc36767e56408bf99ea28222167a2a3f02f6ce50c7e27f431b216c61749fb8
7
+ data.tar.gz: 71876ef3e04cfe2081e21f48e1d0f82cd1a04f42c6215600df7ecd8ea8a4a370471457b87c37455f420afa3463b34a2cb680b2dcba2da21b39d5c9a809ce1707
@@ -11,9 +11,15 @@ module ExecJS
11
11
  config.execjs_rails.server_javascripts = ['server.js']
12
12
  config.execjs_rails.has_view_function_name = 'execjs_rails_has_view'
13
13
  config.execjs_rails.handler_function_name = 'execjs_rails_handler'
14
+ config.execjs_rails.blacklisted_assigns = []
14
15
 
15
16
  config.execjs_rails.view_to_function_options = lambda do |view, options|
16
- view.assigns.stringify_keys.merge!({
17
+ # reject keys in the blacklist
18
+ assigns = view.assigns.reject do |key|
19
+ config.execjs_rails.blacklisted_assigns.include?(key)
20
+ end
21
+
22
+ assigns.stringify_keys.merge!({
17
23
  controller: view.controller_name,
18
24
  action: view.action_name,
19
25
  csrf_token: view.form_authenticity_token || nil,
@@ -1,5 +1,5 @@
1
1
  module ExecJS
2
2
  module Rails
3
- VERSION = '0.2.2.2'
3
+ VERSION = '0.2.2.3'
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.2.2.2
4
+ version: 0.2.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Revelry Labs, LLC