has_enum 0.8.1.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/has_enum/formtastic.rb +1 -1
- data/lib/has_enum/version.rb +1 -1
- metadata +3 -4
data/lib/has_enum/formtastic.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Formtastic::SemanticFormBuilder.class_eval do
|
2
2
|
|
3
3
|
def enum_input(method, options = {})
|
4
|
-
options
|
4
|
+
options[:collection] ||= object.class.values_for_select_tag(method)
|
5
5
|
if object.class.has_multiple_enum? method
|
6
6
|
check_boxes_input method, options
|
7
7
|
else
|
data/lib/has_enum/version.rb
CHANGED
metadata
CHANGED
@@ -5,9 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 8
|
8
|
-
-
|
9
|
-
|
10
|
-
version: 0.8.1.1
|
8
|
+
- 2
|
9
|
+
version: 0.8.2
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Andreas Korth
|
@@ -17,7 +16,7 @@ autorequire:
|
|
17
16
|
bindir: bin
|
18
17
|
cert_chain: []
|
19
18
|
|
20
|
-
date: 2011-04-
|
19
|
+
date: 2011-04-18 00:00:00 +07:00
|
21
20
|
default_executable:
|
22
21
|
dependencies:
|
23
22
|
- !ruby/object:Gem::Dependency
|