searchlogic
searchlogic copied to clipboard
Or condition does not check for polymorphic
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