aboutsummaryrefslogtreecommitdiffstats
path: root/lib/acts_as_xapian
diff options
context:
space:
mode:
Diffstat (limited to 'lib/acts_as_xapian')
-rw-r--r--lib/acts_as_xapian/acts_as_xapian.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/acts_as_xapian/acts_as_xapian.rb b/lib/acts_as_xapian/acts_as_xapian.rb
index 784d7ae87..7076fc586 100644
--- a/lib/acts_as_xapian/acts_as_xapian.rb
+++ b/lib/acts_as_xapian/acts_as_xapian.rb
@@ -844,7 +844,7 @@ module ActsAsXapian
raise "Only Time or Date types supported by acts_as_xapian for :date fields, got " + value.class.to_s
end
elsif type == :boolean
- !!value
+ value ? true : false
else
# Arrays are for terms which require multiple of them, e.g. tags
if value.kind_of?(Array)