I was expecting delete_all to be a more clever than what I''m seeing. I
have
an ActiveRecord::Relation which returns a bunch of records, but calling
`delete_all` on that relation basically ignores any where condition and
joins I used to find them. I think the right behaviour would be to delete
those same returned records.
Something like this:
SubscriptionTagging.joins(%q{
LEFT OUTER JOIN subscriptions ON subscriptions.id =
subscription_taggings.subscription_id
}).where(''subscriptions.id IS NULL'').delete_all
Should I open an issue on github? I''m using Rails 3.2.12.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to rubyonrails-core+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-core@googlegroups.com.
Visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.