art-gun 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a0f2a7a3523b7bc5ac5d54f3baffa3b164de41c2
4
- data.tar.gz: debe340aab28b479e63244ad3c17b10c5f5c4d5f
3
+ metadata.gz: 95c529280f0cc9d0f4a5e0562989f25281c80d8d
4
+ data.tar.gz: 864f666e4624ae189005210dec5fe0da6334cf56
5
5
  SHA512:
6
- metadata.gz: 1f54bf41f50881ef1f6fbac54a2ec0ec265eaae294b8724e749d4d986ec3f7f34f3d0b85ef121c2ba0b1b065e15255665302db3bb94ce236faff4ed41e7abcca
7
- data.tar.gz: 71fe73c5de231c79b4d4e5580cebcf48144a4bda4ac830bcce9d49ed322a3d181dfd1c7097b63a98308922b93ccf4c799eeb79217d5cc5e4e6a15a1f5f4ee018
6
+ metadata.gz: b72a04a82480aa3f08542c98f70947804831db1e9605050d9004d80ec85a7712f0b44c867040142a1286220630d9fb72c8849c639b9d6fe02ac03e7a82c5ff7d
7
+ data.tar.gz: bd34d4ebdc7e95d095fae39489f9b64b7b83ee01f931768ea968ec0c136d71c0e206878707ec19df9c97508dd8687ab155b881e3f8a4521ba35114a54ad563b2
@@ -19,7 +19,7 @@ module ArtGun
19
19
  self.class.attrs.inject({}){|h,k| h[k.to_s] = nil; h}
20
20
  end
21
21
 
22
- def as_json opts = {}
22
+ def as_json opts = {except: :attrs}
23
23
  hash = super opts
24
24
  hash['attributes'] = attrs.map(&:as_json) # to avoid name conflict in model
25
25
  hash
@@ -1,3 +1,3 @@
1
1
  module ArtGun
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: art-gun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lars Kluge