acts_as_paranoid icon indicating copy to clipboard operation
acts_as_paranoid copied to clipboard

ActiveRecord (>=3.0) plugin which allows you to hide and restore records without actually deleting them.

Results 13 acts_as_paranoid issues
Sort by recently updated
recently updated
newest added

The default behavior of the gem will delete records when destroy is called twice. I added an option, :never_delete, so a record will never be deleted from the database by...

Future

Bumps [rake](https://github.com/ruby/rake) from 0.9.2.2 to 12.3.3. Changelog *Sourced from [rake's changelog](https://github.com/ruby/rake/blob/master/History.rdoc).* > === 12.3.3 > > ==== Bug fixes > > * Use the application's name in error message if...

dependencies

Bumps [i18n](https://github.com/svenfuchs/i18n) from 0.6.0 to 0.9.5. Release notes *Sourced from [i18n's releases](https://github.com/svenfuchs/i18n/releases).* > ## v0.9.5 > * [#404](https://github-redirect.dependabot.com/svenfuchs/i18n/issues/404) reported a regression in 0.9.3, which wasn't fixed by 0.9.4. [#408](https://github-redirect.dependabot.com/svenfuchs/i18n/issues/408) fixes...

dependencies

Updates the requirements on [activerecord](https://github.com/rails/rails) to permit the latest version. Commits - [`2fcd13e`](https://github.com/rails/rails/commit/2fcd13eff251ca9e1ff5cf6a13f72c18087daf60) Preparing for 3.2.14 release - [`47fb44f`](https://github.com/rails/rails/commit/47fb44fc7a12f6a57b71b6dcd68a19e572101703) Update CHANGELOG entry - [`a96df04`](https://github.com/rails/rails/commit/a96df04aac00fb2b7d91978c24741100230a50d4) Preparing for 3.2.14.rc2 release - [`1900a56`](https://github.com/rails/rails/commit/1900a56669ba1fc6776fe64534ff1f45104e343c)...

dependencies

The formatting was missing from the Associations section of the ReadMe. This adds the formatting back to make it easier for other developers to read.

I can't see a way around the N+1 problem without using :includes in my Active Record queries. Per the documentation: ``` ruby class ParanoiacParent < ActiveRecord::Base has_many :children, :class_name =>...

A proposal to solve problem that `unscoped` removing a check of deleted or not. I'd unscope only default_scope by just a method. ``` ruby class Model < AR::Base acts_as_paranoid default_scope...

Feature
Future

This generator will add the "acts_as_paranoid" line to the model passed during generator command. It also creates the migration necessary to store the value of deleted_at Example usage... ``` rails...

Hi, I noticed that you have the following lines: default_scope where("#{paranoid_column_reference} IS ?", nil) # Magic! and def only_deleted self.unscoped.where("#{paranoid_column_reference} IS NOT ?", nil) end This would work ok for...

Feature
Future

Dirty tracking doesn't seem to work properly in the after_recover callback: ``` ruby before_recover :do_something_before after_recover :do_something_after def do_something_before deleted_at # => 2013-07-01 10:58:49 end def do_something_after deleted_at # =>...