restpack_serializer 0.2.13 → 0.2.14

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: 970e2e0de08591a08d4a42d5d5f36868d202d192
4
- data.tar.gz: 0eabb7a4194eb635b8d3bafd0220a7a1bc69bbbd
3
+ metadata.gz: 15afd345ae08bba6443d8ae21c527033fee5516a
4
+ data.tar.gz: c0374353f4d558654b91b224cd2219911061b7c4
5
5
  SHA512:
6
- metadata.gz: 659bba0a2505a6bfd3df5fce582bf191df3d1e5dce18530f14391dfe77633a2002def8c510bd469352ac283557f411acbab65407b7b59d2f65e1ec8d2e89a273
7
- data.tar.gz: 1b446fdec2911aaef03845865b9fa83daa0edf794e63e959039a919fb0d9d0726de1a72ba546ec5a45a95f4befa07461b20e853d70969c9587266c05a9b9c6fc
6
+ metadata.gz: 54440feabd8a2f48a94953f73fba1faf2b56f2ced9eb427e7d2448909fc14b4dd5b21c404d08b556a0d702ea46ea7d51844ec9b7986967268686e6985eed0afd
7
+ data.tar.gz: d03b08e531703fa430ada42eceba1759fc162d53e38e91283862246e0935728e0276b4c81fbcff32088aeac78caa2106e3d63cc706328eabf2d1b3d74a556f68
@@ -2,7 +2,7 @@ module RestPack::Serializer::Attributes
2
2
  extend ActiveSupport::Concern
3
3
 
4
4
  def default_href
5
- "#{RestPack::Serializer.config.href_prefix}/#{@model.class.table_name}/#{@model.id}.json"
5
+ "#{RestPack::Serializer.config.href_prefix}/#{self.class.key}/#{@model.id}.json"
6
6
  end
7
7
 
8
8
  module ClassMethods
@@ -1,5 +1,5 @@
1
1
  module RestPack
2
2
  module Serializer
3
- VERSION = '0.2.13'
3
+ VERSION = '0.2.14'
4
4
  end
5
5
  end
@@ -14,4 +14,4 @@ class ArtistSerializer
14
14
  include RestPack::Serializer
15
15
  attributes :id, :name, :website
16
16
  can_include :albums, :songs
17
- end
17
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restpack_serializer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.13
4
+ version: 0.2.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gavin Joyce