Commit ea9448c00e9e510ecccd5eb08cc69f18836784fd

Authored by Braulio Bhavamitra
1 parent 939d1535

Add support for decimal solr type

vendor/plugins/acts_as_solr_reloaded/lib/acts_as_solr/common_methods.rb
... ... @@ -6,7 +6,7 @@ module ActsAsSolr #:nodoc:
6 6 def get_solr_field_type(field_type)
7 7 if field_type.is_a?(Symbol)
8 8 case field_type
9   - when :float
  9 + when :float, :decimal
10 10 return "f"
11 11 when :integer
12 12 return "i"
... ... @@ -84,4 +84,4 @@ module ActsAsSolr #:nodoc:
84 84 eval "object.#{object.class.primary_key}"
85 85 end
86 86 end
87   -end
88 87 \ No newline at end of file
  88 +end
... ...