#111 ✓moved_to_github
Georg Ledermann

Bug: Problems with multiple scopes beginning with the same name

Reported by Georg Ledermann | July 30th, 2009 @ 03:53 PM

Please have a look at this small example:

class Contact < ActiveRecord::Base
  has_many :documents, :as => :object
  has_many :involvements
  has_many :documents_involved, :through => :involvements, :source => :object, :source_type => 'Document'

Contact.search(:documents_involved_title_like => 'foo').all

# => NoMethodError: undefined method `involved_title_like' for #<Class:...>

Using Rails 2.3.3 and searchlogic plugin 2.1.13 released 2009-07-29

Comments and changes to this ticket

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 ยป

Provides common named scopes and object based searching.

People watching this ticket