Acts_as_paranoid Unknown key(s): with_deleted

Trying this straight from the README:

I have acts_as_paranoid in my model (Course), and added the deleted_at
column.

This is OK:

Course.find_with_deleted(:all)

Course.find(:all, :with_deleted => true)

gives:
ArgumentError: Unknown key(s): with_deleted
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/core_ext/hash/keys.rb:49:in assert_valid_keys' from /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/ active_record/base.rb:1894:invalidate_find_options’
from /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/
active_record/base.rb:498:in `find’
from (irb):28

Has anyone else run into this or can someone help me out?

the README is incorrect, you can’t use the :with_deleted parameter. I
ran
into the same issue when I tried using the plugin a long time ago, so I
just
switched to using an implicit finder with the scope-out-rails plugin (
http://code.google.com/p/scope-out-rails/) and I overrode destroy in my
model so it sets a deleted_at value instead of deleting the record.
Adam

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs