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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c479b93cf2764212006f4ee8afc82c484c28f81eaad0161410b4b9e8cebc0c5e
|
|
4
|
+
data.tar.gz: 81e4d10547d02db20a339b905b37253d063037e218df45aeaabcabade9284ee2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
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.
|
|
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.
|
|
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.
|
|
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: []
|