has_searcher 0.0.5 → 0.0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/has_searcher/formtastic.rb +1 -1
- data/lib/has_searcher/version.rb +1 -1
- metadata +2 -1
@@ -18,7 +18,7 @@ module Formtastic
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def default_input_type_with_text_as_string_on_search(method, options={})
|
21
|
-
if object.is_a?(Search) && object.column_for_attribute(method).try(:type) == :text
|
21
|
+
if object.is_a?(Search) && object.class.respond_to?(:has_enum?) && !object.class.has_enum?(method) && object.column_for_attribute(method).try(:type) == :text
|
22
22
|
:string
|
23
23
|
else
|
24
24
|
default_input_type_without_text_as_string_on_search(method, options)
|
data/lib/has_searcher/version.rb
CHANGED