simple_form_attachments 0.0.6 → 0.0.7
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41ace991ff9cf30eed9651db9529b00ae8113c05
|
4
|
+
data.tar.gz: 4238207dcd3a88c5995065cea8886d00734e2f0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2358616f3aab859d465d2f84dd45785a6f276532a38dff02a3c88d41d8dbb3f2c956fdafb5b1322eba695cb3eee66a149bbe7347f3965711498fd072d184be01
|
7
|
+
data.tar.gz: 276b7355b03ec5a4dbe703443deabe7669ff44096816e8bb352f02e96b52d1bce53e3a4cc716b2d1f76cf1da1667961f845b82b70b53c49c7a9f3ff976af9201
|
data/Gemfile.lock
CHANGED
@@ -37,7 +37,7 @@ module SimpleFormAttachments
|
|
37
37
|
accepts_nested_attributes_for accessor_name
|
38
38
|
|
39
39
|
define_method "mark_#{accessor_name}_permanent" do
|
40
|
-
self.send(accessor_name).update(temporary: false)
|
40
|
+
self.send(accessor_name).update(temporary: false) if self.send(accessor_name)
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
@@ -56,7 +56,7 @@ module SimpleFormAttachments
|
|
56
56
|
accepts_nested_attributes_for accessor_name
|
57
57
|
|
58
58
|
define_method "mark_#{accessor_name}_permanent" do
|
59
|
-
self.send(accessor_name).update(temporary: false)
|
59
|
+
self.send(accessor_name).update(temporary: false) if self.send(accessor_name)
|
60
60
|
end
|
61
61
|
end
|
62
62
|
end
|