grape_serializer 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/grape_response.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa8488958662b5f7a08ea527c3ccc3e46965c725fe0def297c6b029917cc8226
|
4
|
+
data.tar.gz: fc7cbb5b2b1de86b1cb2bbb41c46c7490bb79db2d892074bf7aa363e4137b470
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ceea8761f5ec5a285aa3d360ad5366f8b3648805d26dfc4268835310bb0798a9bbff6f939276c6ff3d48bb1f34b5d1569748d0dfacd6f7ea0ae75147289e3b8
|
7
|
+
data.tar.gz: 55368cc861a5abb318954b8785f5dabb288734372f44861d70ed696565d0bd85cc54d4a9ef8b2e83e0e1fec18a62e5ca3e98d0d59eaa18989746445e149235dc
|
data/lib/grape_response.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module GrapeResponse
|
2
2
|
|
3
3
|
def serialize_response(serializer_name, resource, **options)
|
4
|
-
set_serializer_class(serializer_name)
|
4
|
+
set_serializer_class(serializer_name) if serializer_class.nil?
|
5
5
|
serializer = serializer_class.new(current_member: current_member)
|
6
6
|
render status: 200, json: {data: serializer.represent(resource, options)}
|
7
7
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grape_serializer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JiaRou Lee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grape-entity
|