effective_bootstrap 0.12.0 → 0.12.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: 2eda37da109debf0dd81d3ad6123a3355ac2d1407f82c596388732ea4810fd20
|
|
4
|
+
data.tar.gz: 3c9a1e9ebf347a914f975e0d74b6c617bddb0a99448f1cbc57d871dbda6f267f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 79f1b25a831bfbd5a24e7ca9f96e507a4af85dbe918f311c788fb29034c86557e6df38a71cba0dc972c3e2a9c9cd03d8017aab71ba747cf663cf021c3cea8abb
|
|
7
|
+
data.tar.gz: ec23c44ef0524a34d16b674c024b0d76e75361eebb729c547c9a33233e7a737c13a8716e0ae7d2bd1ab588699c9e9a911c1dd73ed2f289bd639a05b94a9b87f7
|
|
@@ -31,11 +31,6 @@ module Effective
|
|
|
31
31
|
@multiple = options.key?(:multiple) ? options.delete(:multiple) : (name.to_s.pluralize == name.to_s)
|
|
32
32
|
end
|
|
33
33
|
|
|
34
|
-
def append?
|
|
35
|
-
return @append unless @append.nil?
|
|
36
|
-
@append = options[:input].key?(:append) ? options[:input].delete(:append) : false
|
|
37
|
-
end
|
|
38
|
-
|
|
39
34
|
def required_presence?(obj, name)
|
|
40
35
|
super(obj, name) && attachments_blank?
|
|
41
36
|
end
|
|
@@ -50,8 +45,6 @@ module Effective
|
|
|
50
45
|
|
|
51
46
|
# This has the affect of appending files to the has_many. Which usually isnt what we want
|
|
52
47
|
def build_existing_attachments
|
|
53
|
-
return ''.html_safe unless append?
|
|
54
|
-
|
|
55
48
|
attachments = Array(object.send(name))
|
|
56
49
|
|
|
57
50
|
attachments.map.with_index do |attachment, index|
|