active_tools 0.2.2 → 0.2.3

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
  SHA256:
3
- metadata.gz: 0bf611157f690c14929f436ae691f74682dc1ccd234a100855f71d7c9b4c8093
4
- data.tar.gz: d5850c92d23869898b7c5bc5584daae4a53b5189fe1d4835ddcd48dd4404166b
3
+ metadata.gz: 687d6ea1e83337571e6a3cff5233ea0b41bb56934817e41018dddf0d2780ab23
4
+ data.tar.gz: 4e0751629b4adabae5fc1c220696ce2ee3c5426accd6b402e71e8ad88ba97362
5
5
  SHA512:
6
- metadata.gz: abc7983afa68333cd97af51635f7dbcd16d9a8ec29ff820f8a59f65cfc80adddfacfd41ff8d3db6dc97ef2832c91190b55928397d956ef03f58d2a06690147d8
7
- data.tar.gz: 3598e20d16269350d2da2f641f4ec47618d3fa1effff69da6882dc0d47f84c5b657eb86fd0a50a97c768ef4175a77d400a5d70b60d09eee0eb85c72bede3f730
6
+ metadata.gz: df1b30dff6d5c2ea56da8bd85708452c158bc1d0c403a0be6517c82542f8b0e2531bb6894c0b4b05467e9e728cc824dc0a138327739a4b2c522684b43c25d919
7
+ data.tar.gz: 551d5973e60c9b616015327243daa85aece3697dd5db6b59c21d2293dc29e53455840d9e84dd64e7999ddfae28bd81b2b6f045cde6541daf6d7fac5ad827ba81
@@ -44,6 +44,7 @@ module ActiveTools
44
44
  store_backup!
45
45
  create_template!
46
46
  target.send("#{name}=", value)
47
+ @template.send("#{name}=", value)
47
48
  owner.send(:attributes_changed_by_setter).except!(local_attribute) if owner.changes[local_attribute].try(:last) == owner.changes[local_attribute].try(:first)
48
49
  if @backup.present? && same_records?(@backup, target, :attributes => @remote_attributes)
49
50
  restore_backup!
@@ -1,3 +1,3 @@
1
1
  module ActiveTools
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Valery Kvon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-01 00:00:00.000000000 Z
11
+ date: 2018-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails