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: d54d4ac9433fea54590d83b45f2a86cf48a6b819
4
- data.tar.gz: 2e0fb384b1a1de24835d6759eb5bcf101b5d3ba6
3
+ metadata.gz: dda7436bbe4458f7126e3897a4559e2e08edb40a
4
+ data.tar.gz: 11993d222c2b2a94f2908ca664fc7055f49a1fb1
5
5
  SHA512:
6
- metadata.gz: 92d2f37e7dd43a2608567c389be98899310be00893fd2c6f6fa7a414524636aa1297fdb06e8f30b5c6584115c9c3702a3d5d3ab17d6a9d432d98195d45011fbf
7
- data.tar.gz: 29b0eb02b5af7f2bcb49beb4ff15e5c3b9fd55401a0be10d76cbc8b002b1c0099129dc858a523f6ce38eda230bf797f880b4bcc5b1082d0a7c903bedede1b2f6
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.id))
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(domain_id)
37
- source.find(domain_id) if domain_id.present?
36
+ def record(domain)
37
+ source.find(domain.id) if domain.id.present?
38
38
  rescue ::ActiveResource::ResourceNotFound
39
39
  nil
40
40
  end
@@ -1,7 +1,7 @@
1
1
  module Dao
2
2
  module Gateway
3
3
  module ActiveResource
4
- VERSION = '1.3.0'
4
+ VERSION = '1.3.1'
5
5
  end
6
6
  end
7
7
  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.0
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-08 00:00:00.000000000 Z
12
+ date: 2016-08-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dao-gateway