#destroyed?
is no longer overridden. Use#paranoia_destroyed?
for the existing behaviour. Washington Luiz#persisted?
is no longer overridden.- ActiveRecord 4.0 no longer has
#destroy!
as an alias for#really_destroy
. #destroy
will now raise an exception if called on a readonly record.#destroy
on a hard deleted record is now a successful noop.#destroy
on a new record will set deleted_at (previously this raised an error)#destroy
and#delete
always return self when successful.
- Calling
#destroy
twice will not hard-delete records. Use#really_destroy
if this is desired. - Fix errors on non-paranoid has_one dependent associations
- Fix restoring polymorphic has_one relationships #189 #174 Patrick Koperwas
- Fix errors when restoring a model with a has_one against a non-paranoid model. #168 Shreyas Agarwal
- Fix rspec 2 compatibility #197 Emil Sågfors
- Fix some deprecation warnings on rails 4.2 Sergey Alekseev
- Add paranoia_scope as named version of default_scope #184 Jozsef Nyitrai
- Fix initialization problems when missing table or no database connection #186
- Fix broken restore of has_one associations #185 #171 Martin Sereinig