I’m trying to implement logical deletion on my model by extending the
has_many association, in a code like this:
class Post < ActiveRecord::Base
has_many :comments do
find :all, :conditions => ‘confirmed is not null’
where confirmed is a datetime field on my database.
The problem is that when I call Post#comments I’m getting the usual
find :all query.
Has anyone implemented logical deletion by extending the has_many
Thanks in advance,