has_searcher 0.0.5 → 0.0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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