-
Notifications
You must be signed in to change notification settings - Fork 37
MetaWhere breaks creating new objects from scopes #13
Comments
It shouldn't. In fact, there are passing tests to check for this. Can you please contribute a failing test, after verifying you are in fact using the latest released gem? See https://github.com/ernie/meta_where/blob/master/test/test_relations.rb#L61 On Apr 13, 2011, at 2:16 PM, manuelmeurer wrote:
|
I tried to write a failing test but they all pass in the MetaWhere project. Still, in my app (Rails 3.0.6, Ruby 1.9.2) it fails and MetaWhere is definitely the deciding factor.
Any idea what the reason could be? |
Not sure what to say. This test I just added is as close to a duplicate of your reported issue as I can come up with :( |
Yeah, that was exactly what I tried as well but the damn thing passes without a scratch. :) Oh well, I'll try to figure it out. Thanks for your great work with MetaWhere! |
One last comment -- you don't happen to have a default_scope on the models in question, do you? I've seen those cause some strange issues in the past... :/ |
Nope, no default_scope. Those things have bitten me more than once as well, so I stopped using them. |
MetaWhere seems to break creating new objects from scopes:
The text was updated successfully, but these errors were encountered: