morse_assetable 0.1.1 → 0.1.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
2
  SHA1:
3
- metadata.gz: c1970e594bbdd2fe57bbec53510ee6d56bcba2a8
4
- data.tar.gz: 3adeb66429de7f6ae9c747f0b836be0c31242d50
3
+ metadata.gz: fa35531756bfeff63bbb6352679418ef56e5b101
4
+ data.tar.gz: 64b9f41461b47abf5ccf1788b47f93c84bb92618
5
5
  SHA512:
6
- metadata.gz: f46e2cb88339652392a324abbf12cc730715e582cdcf66e30ba594bf6adeefc81eca8a038383f9781c180adb139aa978f60f7201b4979114075763ce2e183698
7
- data.tar.gz: 91392140dfbd000195f08300d210b31233ae343d62f27a2c8b2b8bf649b4bc0a4d95bb7e20dc76c8fdd6e1493f068608324144116c3c1a86baa58ba5a9b54ae7
6
+ metadata.gz: 550605474b4d8306dbfe7f6682d5dec1cedf2777ed60ee1c9c2cf3c67dfe623aea210ecf79e771791c05fd57bd3fd66f8da37448108f9a61cc09b5f8f1b33609
7
+ data.tar.gz: 8176bd84fa7fda4c8f7a99aae3af16a75bb99f058e4401a85f51d06aa9f1cb426cc97cc9aa911fce64e0f5bb3a6ef7a5f94bf6871cb20aefcc477371c945ebdf
@@ -14,8 +14,11 @@ module MorseAssetable # rubocop:disable Metrics/ModuleLength
14
14
  end
15
15
  end
16
16
 
17
- validate :process_attachments
18
- validate :process_multiple_attachments
17
+ validate :process_attachments, unless: :new_record?
18
+ validate :process_multiple_attachments, unless: :new_record?
19
+
20
+ after_save :process_attachments, if: :new_record?
21
+ after_save :process_multiple_attachments, if: :new_record?
19
22
  end
20
23
 
21
24
  # ClassMethods
@@ -1,3 +1,3 @@
1
1
  module MorseAssetable
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: morse_assetable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Terry S