You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Person.group(:name).having("count(id) > 1").having("count(id) < 1").to_sql=>"SELECT `people`.* FROM `people` WHERE `people`.`deleted_at` IS NULL GROUP BY name HAVING count(id) > 1"
upon removing acts_as_paranoid from the model:
> Person.group(:name).having("count(id) > 1").having("count(id) < 1").to_sql=>"SELECT `people`.* FROM `people` GROUP BY name HAVING count(id) > 1 AND count(id) < 1"
I realize the #having statements used here are nonsensical, but hopefully this demonstrates the point. Please let me know if there is anything else I can do to help with this issue. I haven't been able to identify anything in the paranoia implementation that would cause this... but I don't really know how deep scopes, unscoped, etc goes.
Edit: I also should have specified this is with paranoia 2.0.2 and Rails 4.0.0. I did also test against Rails 4.0.3 because initially I thought it might have been an ActiveRecord issue, but the same behavior occurred there.
The text was updated successfully, but these errors were encountered:
upon removing
acts_as_paranoid
from the model:I realize the
#having
statements used here are nonsensical, but hopefully this demonstrates the point. Please let me know if there is anything else I can do to help with this issue. I haven't been able to identify anything in the paranoia implementation that would cause this... but I don't really know how deep scopes, unscoped, etc goes.Edit: I also should have specified this is with paranoia 2.0.2 and Rails 4.0.0. I did also test against Rails 4.0.3 because initially I thought it might have been an ActiveRecord issue, but the same behavior occurred there.
The text was updated successfully, but these errors were encountered: