scenejs_on_rails 1.0.7 → 1.0.8
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 +3 -1
- data/lib/scenejs_on_rails/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5999f51fab428200dde577e059cd5c602dddd98
|
4
|
+
data.tar.gz: 7b132695c8f0e99cbf785b9be35df1cfbc92c3ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19356ad3f1f4df3e39bf34a72a0036350148ccc9d5b2070f832215fec883eaa0fe5e7e8bd6258f6a1588f578b7bb2abd742ab406f73159b9a91d54d7b1e3aeed
|
7
|
+
data.tar.gz: 0588c621111bbe9f18c12c3da6c4498ad41f0452a6da9292ff9f78e662a0d152164ca1b11ad89d33896534c2c8ea50070e72b842d67d8a89007aca6103d499f7
|
@@ -45,7 +45,9 @@ class ScenejsController < ApplicationController
|
|
45
45
|
if binary #serves binary image data
|
46
46
|
send_data(@file)
|
47
47
|
else #serves inline js (system may send as application/zip but this causes no issues)
|
48
|
-
|
48
|
+
respond_to do |format|
|
49
|
+
format.js { render inline: @file, layout: false, content_type: 'text/javascript' }
|
50
|
+
end
|
49
51
|
end
|
50
52
|
else
|
51
53
|
raise "ActionController::RoutingError(Scenejs Plugin not found either in gem or app locations:\n #{in_gem_file_ref}\n #{in_app_file_ref})"
|