diff options
-rw-r--r-- | vendor/plugins/acts_as_xapian/README.txt | 3 | ||||
-rw-r--r-- | vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/vendor/plugins/acts_as_xapian/README.txt b/vendor/plugins/acts_as_xapian/README.txt index d0dc8678c..af945a8d4 100644 --- a/vendor/plugins/acts_as_xapian/README.txt +++ b/vendor/plugins/acts_as_xapian/README.txt @@ -18,7 +18,8 @@ a. Introduction to acts_as_xapian "Xapian":http://www.xapian.org is a full text search engine library which has Ruby bindings. acts_as_xapian adds support for it to Rails. It is an -alternative to acts_as_solr, acts_as_ferret or Ultrasphinx. +alternative to acts_as_solr, acts_as_ferret, Ultrasphinx, acts_as_indexed, +acts_as_searchable or acts_as_tsearch. acts_as_xapian is deployed in production on these websites. * "WhatDoTheyKnow":http://www.whatdotheyknow.com diff --git a/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb b/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb index 4bffe9681..18fbd6b0c 100644 --- a/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb +++ b/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb @@ -502,7 +502,7 @@ module ActsAsXapian # Extract value of a field from the model def xapian_value(field, type = nil) - value = self[field] || self.instance_variable_get("@#{field.to_s}".to_sym) || self.send(field.to_sym) + value = self[field] || self.send(field.to_sym) if type == :date value.utc.strftime("%Y%m%d") elsif type == :boolean |