simple_form-dropdown_select 0.1.0 → 0.1.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9f1b3887b5061d8f2ee478623c3dec844c3c866
|
4
|
+
data.tar.gz: ca82c4b4363dec54db9e269ab821b0f6aa1d308b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2afff27f072f8622026a1dcb2e630560e06ec81955258a681fbe59085e5109d359f3efe5bca3632a39d002caea5e85259e0887754fea93f5113707f5a0bbd8b
|
7
|
+
data.tar.gz: d7e6720f01b7e48527ce2690db69d91f715f1effe268b3c041705d7d75991bf11ea453324d41976da2869c651ea843bb076c10220fc0de0b6f875c8c0f010582
|
@@ -7,7 +7,7 @@ class DropdownSelectInput < SimpleForm::Inputs::CollectionInput
|
|
7
7
|
collection.find { |x| x[1] == object.send(attribute_name) }
|
8
8
|
end
|
9
9
|
|
10
|
-
def input
|
10
|
+
def input(wrapper_options = nil)
|
11
11
|
if options[:allow_blank]
|
12
12
|
collection.unshift(
|
13
13
|
[options[:allow_blank] == true ? 'None' : options[:allow_blank], '']
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_form-dropdown_select
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Becker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coffee-script
|