sinatra-backstage 0.2.3.1 → 0.2.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/sinatra/backstage/rest/rest_routes.rb +2 -7
- 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: 2fe6aa6d4025104f3cd16efd4c0c2a5ce3d61f68
|
4
|
+
data.tar.gz: 0b8006c04ee79a60c4a32a46633570674e3cf229
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a013460aa8eae9b4d8034a3abf539915348433c6d6eb3b31a28c5da4c2604ddd9e708cdaa4362ee7c2e47bc69f34c9e06c1dd2b0c71d1528029e8303097eb8b1
|
7
|
+
data.tar.gz: 8db14557af72b3e2132583448ab21211171877b8c5169d1092545adaf07a6de19152ad486d52e346af37c974d17cf5d9b35cf157c16c1d5db1b9d31f9faa8319
|
@@ -20,13 +20,8 @@ module Sinatra
|
|
20
20
|
# puts "-- REST.Routing get namespace after format ( params = #{params})"
|
21
21
|
format = 'json' if request.accept.include?('text/json') || request.accept.include?('application/json')
|
22
22
|
## get json options
|
23
|
-
|
24
|
-
json_opts =
|
25
|
-
hash_sym[key.to_sym] = val.map do |el|
|
26
|
-
el.to_sym
|
27
|
-
end
|
28
|
-
hash_sym
|
29
|
-
end if json_opts
|
23
|
+
json_method = params.delete('json_method')
|
24
|
+
json_opts = {:methods => ([json_method] || [])}
|
30
25
|
## get objects
|
31
26
|
@objects = rest_get_all klass, params
|
32
27
|
# puts "-- REST.Routing get namespace ( @objects = #{@objects})"
|