has_enum 0.8.1 → 0.8.1.1
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 -2
data/lib/has_enum/formtastic.rb
CHANGED
@@ -2,7 +2,7 @@ Formtastic::SemanticFormBuilder.class_eval do
|
|
2
2
|
|
3
3
|
def enum_input(method, options = {})
|
4
4
|
options.merge! :collection => object.class.values_for_select_tag(method)
|
5
|
-
if object.class.
|
5
|
+
if object.class.has_multiple_enum? method
|
6
6
|
check_boxes_input method, options
|
7
7
|
else
|
8
8
|
select_input method, options.merge(:wrapper_html => {:class => :enum})
|
data/lib/has_enum/version.rb
CHANGED
metadata
CHANGED
@@ -6,7 +6,8 @@ version: !ruby/object:Gem::Version
|
|
6
6
|
- 0
|
7
7
|
- 8
|
8
8
|
- 1
|
9
|
-
|
9
|
+
- 1
|
10
|
+
version: 0.8.1.1
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Andreas Korth
|
@@ -16,7 +17,7 @@ autorequire:
|
|
16
17
|
bindir: bin
|
17
18
|
cert_chain: []
|
18
19
|
|
19
|
-
date: 2011-04-
|
20
|
+
date: 2011-04-12 00:00:00 +07:00
|
20
21
|
default_executable:
|
21
22
|
dependencies:
|
22
23
|
- !ruby/object:Gem::Dependency
|