To edit pages or tickets please login with username/password: aaf/aaf

Changeset 108

Show
Ignore:
Timestamp:
10/13/06 08:39:51 (2 years ago)
Author:
jk
Message:

allow additional model to be the class instead of the class in an array

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plugin/acts_as_ferret/lib/acts_as_ferret.rb

    r93 r108  
    2727# Ferret::Search::Similarity, Ferret::Search::Similarity.default missing 
    2828# IndexReader#latest? segfaults when used on multiple indexes 
    29 # 
    3029 
    3130# The Rails ActiveRecord Ferret Mixin. 
  • trunk/plugin/acts_as_ferret/lib/class_methods.rb

    r105 r108  
    423423        def id_multi_search(query, additional_models = [], options = {}) 
    424424          deprecated_options_support(options) 
     425          additional_models = [ additional_models ] unless additional_models.is_a? Array 
    425426          additional_models << self 
    426427          searcher = multi_index(additional_models) 

To edit pages or tickets please login with username/password: aaf/aaf