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.
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module HasSearcher
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.5.1"
3
3
  end
metadata CHANGED
@@ -6,7 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 0
7
7
  - 0
8
8
  - 5
9
- version: 0.0.5
9
+ - 1
10
+ version: 0.0.5.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Dmitry Lihachev