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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/grape_response.rb +1 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: beed7e5350f2e92297eeaf1fd63801fe17eecccc8e1b37666c6cc6e8d374d678
4
- data.tar.gz: 1d7d2884d642d29e89564f2f25de1cd079809d1a9ef8f7617bf70f67ce5bacf4
3
+ metadata.gz: aa8488958662b5f7a08ea527c3ccc3e46965c725fe0def297c6b029917cc8226
4
+ data.tar.gz: fc7cbb5b2b1de86b1cb2bbb41c46c7490bb79db2d892074bf7aa363e4137b470
5
5
  SHA512:
6
- metadata.gz: c45cdf62492b9c6bfbe658b8e2d5075f5bfb265fe58a24295e760e1cfad7ab47464381b40ae408f63f1aa731762b850561546c6ef85124da63831bc7cc1fcc0c
7
- data.tar.gz: 42a22e325a9b666261c984ab46d4d6d5962699528fed32302e6652f50f5c198f1f072b3e01c44e1d26c3335cb5263b2ab74605763641593f95c5d9476a8c531f
6
+ metadata.gz: 5ceea8761f5ec5a285aa3d360ad5366f8b3648805d26dfc4268835310bb0798a9bbff6f939276c6ff3d48bb1f34b5d1569748d0dfacd6f7ea0ae75147289e3b8
7
+ data.tar.gz: 55368cc861a5abb318954b8785f5dabb288734372f44861d70ed696565d0bd85cc54d4a9ef8b2e83e0e1fec18a62e5ca3e98d0d59eaa18989746445e149235dc
@@ -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
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-06-28 00:00:00.000000000 Z
11
+ date: 2024-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grape-entity