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 +4 -4
- data/lib/morse_assetable.rb +5 -2
- data/lib/morse_assetable/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa35531756bfeff63bbb6352679418ef56e5b101
|
4
|
+
data.tar.gz: 64b9f41461b47abf5ccf1788b47f93c84bb92618
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 550605474b4d8306dbfe7f6682d5dec1cedf2777ed60ee1c9c2cf3c67dfe623aea210ecf79e771791c05fd57bd3fd66f8da37448108f9a61cc09b5f8f1b33609
|
7
|
+
data.tar.gz: 8176bd84fa7fda4c8f7a99aae3af16a75bb99f058e4401a85f51d06aa9f1cb426cc97cc9aa911fce64e0f5bb3a6ef7a5f94bf6871cb20aefcc477371c945ebdf
|
data/lib/morse_assetable.rb
CHANGED
@@ -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
|