In my Post.rb model, I have default_scope :conditions => {:deleted => \'false\'}
default_scope :conditions => {:deleted => \'false\'}
But if I try to run Post.find(:all, :conditions => \"del
Post.find(:all, :conditions => \"del
with_exclusive_scope is protected, so you have to create a class method:
with_exclusive_scope
protected
def self.include_deleted_in Event.with_exclusive_scope { yield } end
then in your controller call
Post.include_deleted_in { Post.find(:all) }