active_tools 0.2.1 → 0.2.2

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
- SHA1:
3
- metadata.gz: 507869d978bf4ad3d18dc4df23ae57ac3c8865ce
4
- data.tar.gz: 3e4f5d63774bdc82d86d0433373457a1903c8231
2
+ SHA256:
3
+ metadata.gz: 0bf611157f690c14929f436ae691f74682dc1ccd234a100855f71d7c9b4c8093
4
+ data.tar.gz: d5850c92d23869898b7c5bc5584daae4a53b5189fe1d4835ddcd48dd4404166b
5
5
  SHA512:
6
- metadata.gz: 40b3211fa2fbff948d62ba385fe4ba87f1ee8d248b6e1f348446d973ca60ce11c0dd7d59b52f0df8b660e7d1b02d9e8316f6a1cad8701bdf5ff5cfc3140f7ef3
7
- data.tar.gz: 936b27f1f6671b9270bb193f0434891cfe487b81d55f76cf58d2c0130b0d4fe525f4cd69c8a2262fce912d891450529e7827b80a9b865dffb9e2add0de4d3fb7
6
+ metadata.gz: abc7983afa68333cd97af51635f7dbcd16d9a8ec29ff820f8a59f65cfc80adddfacfd41ff8d3db6dc97ef2832c91190b55928397d956ef03f58d2a06690147d8
7
+ data.tar.gz: 3598e20d16269350d2da2f641f4ec47618d3fa1effff69da6882dc0d47f84c5b657eb86fd0a50a97c768ef4175a77d400a5d70b60d09eee0eb85c72bede3f730
@@ -245,7 +245,9 @@ module ActiveTools
245
245
 
246
246
  def target=(record)
247
247
  if owner.persisted?
248
- if Rails.version >= "4.1.0"
248
+ if Rails.version >= "5.2.0"
249
+ association.send(:replace_keys, record)
250
+ elsif Rails.version >= "4.1.0"
249
251
  if record
250
252
  association.send(:replace_keys, record)
251
253
  else
@@ -1,3 +1,3 @@
1
1
  module ActiveTools
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
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.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Valery Kvon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-04 00:00:00.000000000 Z
11
+ date: 2018-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  version: '0'
126
126
  requirements: []
127
127
  rubyforge_project: active_tools
128
- rubygems_version: 2.6.11
128
+ rubygems_version: 2.7.6
129
129
  signing_key:
130
130
  specification_version: 4
131
131
  summary: ActionDispatch, ActionController, ActiveModel, ActiveRecord, ActiveSupport,