effective_bootstrap 0.3.10 → 0.3.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/effective/form_builder.rb +3 -3
- data/lib/effective_bootstrap/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4ec43f24a86db3d6d7a24e365db93e9163d037c
|
4
|
+
data.tar.gz: 06d5baab43386a3a3f8b5e0ed742f7ee659766ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4762161acb5b6293f613c847455a4258900703f614033ddb6bbaab501184b90046f01209176a834921e99b19ce1704509a9ddd792416b6e2480432b7c1c7ee69
|
7
|
+
data.tar.gz: a614847bda10fe72c9f117de71bed0bb5a0604584c5923b88253f48a6d53538e49bf47a1d0fca7d01d7f934fb89da3e73722468efd6d8f132aa068e4b1ff9718
|
@@ -23,9 +23,9 @@ module Effective
|
|
23
23
|
|
24
24
|
def check_box(name, options = {})
|
25
25
|
Effective::FormInputs::CheckBox.new(name, options, builder: self).to_html {
|
26
|
-
checked_value = options.
|
27
|
-
unchecked_value = options.
|
28
|
-
super(name, options, checked_value, unchecked_value)
|
26
|
+
checked_value = options.fetch(:checked_value, '1')
|
27
|
+
unchecked_value = options.fetch(:unchecked_value, '0')
|
28
|
+
super(name, options.except(:checked_value, :unchecked_value), checked_value, unchecked_value)
|
29
29
|
}
|
30
30
|
end
|
31
31
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_bootstrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|