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: d704ce4e1eb946de08651ae3d5ab12c3fba6e7fcb420d0d0148626a023598a16
4
- data.tar.gz: 2934e7fce86b41479c10a4b1a831a6dbab493836ea84b64327ebe2bd257bc2f3
3
+ metadata.gz: 2eda37da109debf0dd81d3ad6123a3355ac2d1407f82c596388732ea4810fd20
4
+ data.tar.gz: 3c9a1e9ebf347a914f975e0d74b6c617bddb0a99448f1cbc57d871dbda6f267f
5
5
  SHA512:
6
- metadata.gz: 94d6919a5026511bddc02029dfc25f1ad6336f648d1dd34ebc50bca7779f220703ed14655157f0b46acbe5840185a84fc085c104f1ebbdb8d250314ccdc3020f
7
- data.tar.gz: 35423d971df78886a1d7887b001e6c6d4bafd5ae62ef9bcab4c51f96b14f942f60589645802df20e4a85da17e2d847ca6cdecf3f348941e48d77672c0bd0ff03
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|
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '0.12.0'.freeze
2
+ VERSION = '0.12.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect