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: b996f32e2ddbbaaf543d29b6081f1182367d0c29
4
- data.tar.gz: 750c50f7c1a7f92319602c628845d2317a469363
3
+ metadata.gz: 41ace991ff9cf30eed9651db9529b00ae8113c05
4
+ data.tar.gz: 4238207dcd3a88c5995065cea8886d00734e2f0d
5
5
  SHA512:
6
- metadata.gz: 04026a5c36d5b1e1685c6804cb4522a216c948db5770bb9ccd7a10027493cc9ed3589db64a69a27e183b02f3d21569464c1e444ea2b2c3aa144fdf2fb4e1dcb5
7
- data.tar.gz: 28e95b3b75b506aa8e2bdcc55091562ed302645cce98aad5ac7c2d49241994956657e827f8193e4d509c2a3aa7f5db586bc20415631a561f8143a7a6a5937a97
6
+ metadata.gz: 2358616f3aab859d465d2f84dd45785a6f276532a38dff02a3c88d41d8dbb3f2c956fdafb5b1322eba695cb3eee66a149bbe7347f3965711498fd072d184be01
7
+ data.tar.gz: 276b7355b03ec5a4dbe703443deabe7669ff44096816e8bb352f02e96b52d1bce53e3a4cc716b2d1f76cf1da1667961f845b82b70b53c49c7a9f3ff976af9201
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- simple_form_attachments (0.0.6)
4
+ simple_form_attachments (0.0.7)
5
5
  jquery-ui-rails
6
6
  rails (>= 4.2)
7
7
  rails-assets-blueimp-file-upload (>= 9.6.0)
@@ -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
@@ -1,3 +1,3 @@
1
1
  module SimpleFormAttachments
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_form_attachments
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas Celizna