scenejs_on_rails 1.0.10 → 1.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/scenejs_controller.rb +2 -8
- data/lib/scenejs_on_rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57e9d89bdc99a396d3125095950b4d4ac4e9d129
|
4
|
+
data.tar.gz: 95b7b8e403b6cc7d447466beb1d0207dd2c3ffad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aeb42bccfa1e023bcdf762f18a707c61292a232039437bf70995b8448f6d853762faaa41b9a393dabe830905f050a5e28c002b26314124a3db7f8226ac0a6705
|
7
|
+
data.tar.gz: bc9fc2f799ffee0b2861c22433c1b1a8cacb3a42255874a2e425b5423dbfa3eb2acbcdf9d422e0ee2454ef018383ed4c52fe37fd2344ba45039c440a24223350
|
@@ -1,5 +1,5 @@
|
|
1
1
|
class ScenejsController < ApplicationController
|
2
|
-
skip_before_action :verify_authenticity_token
|
2
|
+
skip_before_action :verify_authenticity_token
|
3
3
|
|
4
4
|
def get_scenejs_data
|
5
5
|
#scenejs grabs plugins from this path
|
@@ -48,7 +48,7 @@ class ScenejsController < ApplicationController
|
|
48
48
|
send_data(@file)
|
49
49
|
else #serves inline js (system may send as application/zip but this causes no issues)
|
50
50
|
respond_to do |format|
|
51
|
-
format.js { render js: @file, layout: false }
|
51
|
+
format.js { render js: @file, layout: false, content_type: Mime::JS }
|
52
52
|
end
|
53
53
|
end
|
54
54
|
else
|
@@ -56,10 +56,4 @@ class ScenejsController < ApplicationController
|
|
56
56
|
end
|
57
57
|
end
|
58
58
|
end
|
59
|
-
|
60
|
-
protected
|
61
|
-
|
62
|
-
def js_request?
|
63
|
-
request.format.js?
|
64
|
-
end
|
65
59
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scenejs_on_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Louis Alridge
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|