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.
@@ -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