searchlogic icon indicating copy to clipboard operation
searchlogic copied to clipboard

Or condition does not check for polymorphic

Open mdeering opened this issue 15 years ago • 0 comments

here is the failing spec

  it "should handle _or_ed polymorphic conditions like a rockstar" do
    Audit.auditable_user_type_id_or_auditable_order_type_user_id_eq("5").proxy_options.should == {
      :conditions => ["something"],
      :joins => "something else"
    }
  end

Will give you the error on line 108 of or_conditions.rb:

uninitialized constant Audit::Auditable

mdeering avatar Mar 04 '10 22:03 mdeering