Skip to content

Releases: listia/rails_soft_deletable

v0.0.8

11 Dec 04:13
Compare
Choose a tag to compare
  • Add with_delete option to has_many, has_one, and belongs_to association methods:

    belongs_to :secret_file, with_deleted: true
    has_many :secrets, with_deleted: true
    has_one :secret, with_deleted: true

    Note: To see deleted records for a has_many through association, the through model association must have with_deleted set to true.

v0.0.7

06 Dec 06:51
Compare
Choose a tag to compare
  • Fix 0.0.6 regressions (query methods went missing).

v0.0.6

06 Dec 06:13
Compare
Choose a tag to compare

YANKED!

  • Use Railties instead of monkey-patching.
  • Test against a real Rails app.

v0.0.5

23 Nov 06:57
Compare
Choose a tag to compare
  • deleted_at now returns the db value (not Time); this makes it easier for validates_uniqueness_of to work without hacks. To get the soft deletion time as a Time object, use soft_delete_time.

v0.0.4

23 Nov 05:24
Compare
Choose a tag to compare
  • Changed gem activation method from: acts_as_soft_deletable to soft_deletable.
  • A record that is soft deleted will now return false for persisted?. This behaves more consistent with hard deletions.
  • hard_delete! and hard_destroy! have been replaced with delete(:hard) and destroy(:hard), respectively.