active_scaffold_duplicate 2.1.0 → 2.1.1

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
  SHA256:
3
- metadata.gz: f5f1c4cf45f2d3b19627b5455855e465444dda860be61435783d4bf0343bc370
4
- data.tar.gz: 1d38a8e4e5e7a9463308c23f4c0f7327acc5264b8318211c84381fd48f78ed84
3
+ metadata.gz: c479b93cf2764212006f4ee8afc82c484c28f81eaad0161410b4b9e8cebc0c5e
4
+ data.tar.gz: 81e4d10547d02db20a339b905b37253d063037e218df45aeaabcabade9284ee2
5
5
  SHA512:
6
- metadata.gz: de1f1f6928cc3e14d9582c3965f4d5494c683429a69e738c230ca8edd3684a68490c500f9df8219eab6a35eea864ac81f0a048c78d8c316611ec28b78c8510f9
7
- data.tar.gz: '09bb16ccb13496eef1d29a5c035fb6f769f5ec4075283a9db5964df63be60713f5478a82441aeb6bf43d752f705c84ce2b9331477eb8e6d41a7b7aa979e22698'
6
+ metadata.gz: a356e3d4699384ea5e02355c157e2ddbf56dbdf2e22fb8d7a2ea0ccd7f71b12d7d3398c8091468e3b90017b7e8d72b8620513cb1c0113f3a362f685584975c13
7
+ data.tar.gz: 87b044d9441bf408367297931d1c2585eaee4bc9a40732baad02965bd38d0e4ca9bc6add2abeb41208a40c02a2530273ba9b18b65556236c75c64d0941b77955
@@ -35,7 +35,7 @@ module ActiveScaffold::Actions
35
35
  @scope&.slice(1..-2)&.split('][')&.each { |scope| attributes = attributes[scope] }
36
36
  attributes = attributes[@column.name].values
37
37
  cfg = active_scaffold_config_for(@record.class)
38
- update_record_from_params(@record, cfg.subform.columns, attributes, true)
38
+ update_record_from_params(@record, cfg.subform.columns, attributes, avoid_changes: true)
39
39
  end
40
40
  end
41
41
 
@@ -13,7 +13,7 @@ module ActiveScaffoldDuplicate
13
13
 
14
14
  def duplicate_subform_row(record, attributes, columns = nil)
15
15
  cfg = active_scaffold_config_for(record.class) unless columns
16
- update_record_from_params(record, columns || cfg.subform.columns, attributes, true)
16
+ update_record_from_params(record, columns || cfg.subform.columns, attributes, avoid_changes: true)
17
17
  end
18
18
  end
19
19
  end
@@ -2,7 +2,7 @@ module ActiveScaffoldDuplicate
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 1
5
- PATCH = 0
5
+ PATCH = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_scaffold_duplicate
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergio Cambra
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - ">="
17
17
  - !ruby/object:Gem::Version
18
- version: 4.4.0
18
+ version: 4.4.5
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - ">="
24
24
  - !ruby/object:Gem::Version
25
- version: 4.4.0
25
+ version: 4.4.5
26
26
  description: Clone records using a method from model in ActiveScaffold
27
27
  email: activescaffold@googlegroups.com
28
28
  executables: []