Skip to content

v2.1.0

Compare
Choose a tag to compare
@jhawthorn jhawthorn released this 24 Jan 00:44
· 298 commits to core since this release

Major changes

  • #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.

Bug Fixes

  • Calling #destroy twice will not hard-delete records. Use #really_destroy if this is desired.
  • Fix errors on non-paranoid has_one dependent associations