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

Ticket #182 (closed defect: fixed)

Opened 1 year ago

Last modified 11 months ago

:group clause does not work in #find_by_contents

Reported by: aaf Assigned to: jk
Priority: major Milestone: 0.4.2
Component: 0plugin Version:
Keywords: Cc:

Description

Contrary to what the documentation states, the :group option raises an exception when used in the third parameter to #find_by_contents.

This option is not present in the 'valid keys' assertion, see the stacktrace below.

Bookmark.find_by_contents 'battle', {}, :group => :url ArgumentError?: Unknown key(s): group

from lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/core_ext/hash/keys.rb:48:in `assert_valid_keys' from lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:913:in `with_scope' from ./script/../config/../config/../vendor/plugins/acts_as_ferret/lib/class_methods.rb:374:in `send'

Change History

11/17/07 13:58:32 changed by jk

  • status changed from new to assigned.
  • milestone set to 0.4.2.

11/17/07 16:46:55 changed by jk

  • status changed from assigned to closed.
  • resolution set to fixed.

fixed by removing usage of with_scope

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