dao-gateway-active_resource 1.3.0 → 1.3.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dda7436bbe4458f7126e3897a4559e2e08edb40a
|
4
|
+
data.tar.gz: 11993d222c2b2a94f2908ca664fc7055f49a1fb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8f55f20abe17d58bb300877eff9b86e32ec539bc56b6ead51614b501a3442f05c9a0dce1d0d4bfa028e54c5ea26da20fa48f556850e7a76fcdbba860b8e16dd
|
7
|
+
data.tar.gz: 25e7a4a184c6f8f1d0eb1fc80304cc0ddd769c11f6d6f18ef12cceefc3baec8d15f869029e6f047607fed8e1e7082c20311c9a93d53c555d996c412db664a2d3
|
@@ -3,7 +3,7 @@ module Dao
|
|
3
3
|
module ActiveResource
|
4
4
|
class Base < Dao::Gateway::Base
|
5
5
|
def save!(domain, _)
|
6
|
-
record = export(domain, record(domain
|
6
|
+
record = export(domain, record(domain))
|
7
7
|
record.save!
|
8
8
|
|
9
9
|
domain.attributes = import(record, domain.initialized_with).attributes
|
@@ -33,8 +33,8 @@ module Dao
|
|
33
33
|
relation.is_a?(::ActiveResource::Collection)
|
34
34
|
end
|
35
35
|
|
36
|
-
def record(
|
37
|
-
source.find(
|
36
|
+
def record(domain)
|
37
|
+
source.find(domain.id) if domain.id.present?
|
38
38
|
rescue ::ActiveResource::ResourceNotFound
|
39
39
|
nil
|
40
40
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dao-gateway-active_resource
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- llxff
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-08-
|
12
|
+
date: 2016-08-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dao-gateway
|