restpack_core_service 0.0.7 → 0.0.8

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: 52807d51108a48deef41bc8969a19bd5ff468554
4
- data.tar.gz: a6f046e023180cd7d79ddf81dfe6345b55d28c1d
3
+ metadata.gz: 5e574d7f448b285f61c2f029deda52c77275c746
4
+ data.tar.gz: 1d91260977fcb5b3f795457e269ebf8d05479af4
5
5
  SHA512:
6
- metadata.gz: 4256c522beddff5e9bc2544cd5662ee4eed7c3d813dd519be24d7fdd9d0e361dc88beb5193cfd93390e13cea01c6dd503f68b193e3ba331da56aefb17979cc14
7
- data.tar.gz: e362b39a88c302963f21ef1bf2e28fa1cc88ee7fff1a2bcc4adc3853f1ec1480c0d35737979cf19ff60387d067773205a249df7ca5f1ba921965189d80cfd87c
6
+ metadata.gz: 3f39a7ebdd0aa764e40f4c3a0cf97ba0844c0e2a3304979eb212b2ac4a46037bbe2382f1b51f35d32f6cb67d5cc48fc1bfc27ad8e994cf1beca6caf61424c665
7
+ data.tar.gz: 1b035e35d44dbd7d4dd428109c56fd03bf549038aa27931a5a4c147e294e91e87df648e0fc2ec46184f21ac2455876680ee29c744bd7d3ffe21dcf88d8489059
@@ -6,7 +6,7 @@ module RestPack::Core::Service::Models
6
6
  validates_presence_of :name, :account_id
7
7
  validates :name, :length => { :maximum => 256 }
8
8
 
9
- has_many :domains
9
+ has_many :domains, class_name: 'RestPack::Core::Service::Models::Domain'
10
10
 
11
11
  before_save -> {
12
12
  self.api_token ||= SecureRandom.hex(50)[0..31]
@@ -6,7 +6,7 @@ module RestPack::Core::Service::Models
6
6
  validates_presence_of :identifier, :application_id
7
7
  validates :identifier, :length => { :maximum => 512 }
8
8
 
9
- belongs_to :application
9
+ belongs_to :application, class_name: 'RestPack::Core::Service::Models::Application'
10
10
 
11
11
  before_save -> {
12
12
  self.oauth_providers ||= {}
@@ -11,6 +11,12 @@ end
11
11
 
12
12
  #TODO: GJ: remove once this has been addressed:
13
13
  # https://github.com/RestPack/restpack_serializer/issues/41
14
+ module RestPack::Core::Service::Models
15
+ class ApplicationSerializer < RestPack::Core::Service::Serializers::ApplicationSerializer
16
+
17
+ end
18
+ end
19
+
14
20
  class ApplicationSerializer < RestPack::Core::Service::Serializers::ApplicationSerializer
15
21
 
16
22
  end
@@ -1,7 +1,7 @@
1
1
  module RestPack
2
2
  module Core
3
3
  module Service
4
- VERSION = "0.0.7"
4
+ VERSION = "0.0.8"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restpack_core_service
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gavin Joyce