json_api_responders 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/json_api_responders/responder.rb +2 -2
- data/lib/json_api_responders/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: 988a16997eaa202652602524f3f69ba649b38ab0
|
4
|
+
data.tar.gz: 01af27b3c0cfa960f93b664424a2e0f377fa710d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ced7e86b6f9deaae06d1e68524ded7dbee817d49c2c1f9d6b8b7269af258f26b960b82ae668882340e0a15ea949faf466b576c824ea13a3715c60b4aa4bab011
|
7
|
+
data.tar.gz: 0431f786416bc5d90c0c1106386c0255cf733000bf271c8979f1bb7cebbbd63937485777b54bcb8d0d0c26fce55dc6e6dfd18bc12aec97daec54a6fa8bee5289
|
@@ -16,7 +16,7 @@ module JsonApiResponders
|
|
16
16
|
def initialize(resource, options = {})
|
17
17
|
@resource = resource
|
18
18
|
@options = options
|
19
|
-
self.status = @options[:status]
|
19
|
+
self.status = @options[:status] if @options[:status]
|
20
20
|
@params = @options[:params]
|
21
21
|
@controller = @options[:controller]
|
22
22
|
@namespace = @options[:namespace]
|
@@ -56,7 +56,7 @@ module JsonApiResponders
|
|
56
56
|
|
57
57
|
def render_response
|
58
58
|
return send("respond_to_#{action}_action") if action.in?(ACTIONS)
|
59
|
-
raise(
|
59
|
+
raise(JsonApiResponders::Errors::UnknownAction, action)
|
60
60
|
end
|
61
61
|
|
62
62
|
def render_error
|