Commit ea9448c00e9e510ecccd5eb08cc69f18836784fd
1 parent
939d1535
Exists in
master
and in
29 other branches
Add support for decimal solr type
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
vendor/plugins/acts_as_solr_reloaded/lib/acts_as_solr/common_methods.rb
@@ -6,7 +6,7 @@ module ActsAsSolr #:nodoc: | @@ -6,7 +6,7 @@ module ActsAsSolr #:nodoc: | ||
6 | def get_solr_field_type(field_type) | 6 | def get_solr_field_type(field_type) |
7 | if field_type.is_a?(Symbol) | 7 | if field_type.is_a?(Symbol) |
8 | case field_type | 8 | case field_type |
9 | - when :float | 9 | + when :float, :decimal |
10 | return "f" | 10 | return "f" |
11 | when :integer | 11 | when :integer |
12 | return "i" | 12 | return "i" |
@@ -84,4 +84,4 @@ module ActsAsSolr #:nodoc: | @@ -84,4 +84,4 @@ module ActsAsSolr #:nodoc: | ||
84 | eval "object.#{object.class.primary_key}" | 84 | eval "object.#{object.class.primary_key}" |
85 | end | 85 | end |
86 | end | 86 | end |
87 | -end | ||
88 | \ No newline at end of file | 87 | \ No newline at end of file |
88 | +end |