#56 ✓resolved
Jens

:group clause does not work in #find_by_contents

Reported by Jens | February 13th, 2010 @ 12:38 AM

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'

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket

Pages