glebtv-rails-uploader 0.11.0 → 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/uploader/attachments_controller.rb +1 -3
- data/lib/uploader/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66897b492351d987070328a15484b624a0de99eb0d19dacf7e955ce77f713ddc
|
4
|
+
data.tar.gz: '08572b35933528584b2aeab372cdc4b52b804c25b09e8b1ac43a99319ffa86ff'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43d179f0adea398d9bb4018289f11c25f33185e144603422e97834a76eba8a54d12f1177743255decaa39925580a0dd723a8f9ee3a5ef539bbef47dd4ad402c1
|
7
|
+
data.tar.gz: e51baf03eedc5f57a6c550168c6d19361f5337ff2faa3697c61c231c570eadfdc088cb226194a93909e5c76095cd067272a1e451151c80d6a9d6fe0dbbb0e4cf
|
@@ -47,10 +47,8 @@ module Uploader
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def render_json(hash_or_object, status = 200)
|
50
|
-
ctype = env["HTTP_USER_AGENT"] && env["HTTP_USER_AGENT"].include?("Android") ? "text/plain" : "application/json"
|
51
|
-
|
52
50
|
self.status = status
|
53
|
-
self.content_type =
|
51
|
+
self.content_type = "application/json"
|
54
52
|
self.response_body = hash_or_object.to_json(:root => false)
|
55
53
|
end
|
56
54
|
end
|
data/lib/uploader/version.rb
CHANGED