restpack_core_service 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e574d7f448b285f61c2f029deda52c77275c746
|
4
|
+
data.tar.gz: 1d91260977fcb5b3f795457e269ebf8d05479af4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|