Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Mar 23, 2015
  1. Bump to 2.1.1

Commits on Mar 18, 2015
  1. Merge pull request #192 from sergey-alekseev/switch-to-rails-4-2

    Fix counter cache behaviour on rails 4.2
Commits on Feb 18, 2015
  1. @sergey-alekseev


    sergey-alekseev authored
    This has been removed and should no longer exist.
    #192 (comment)
  2. @sergey-alekseev


    sergey-alekseev authored
    I asked about `restore` in the
    [Notes](#192 (comment)) of
    the PR's description. Personally I don't need such a behaviour. So
  3. @jhawthorn

    Merge pull request #216 from sergey-alekseev/patch-1

    jhawthorn authored
    remove unused parameter
Commits on Feb 17, 2015
  1. @sergey-alekseev

    comment the red test

    sergey-alekseev authored
  2. @sergey-alekseev

    move Rails 4.2 counter cached associations destroy inside callbacks

    sergey-alekseev authored
    This will allow to detect counter cached columns changes in callbacks
    like `after_destroy` or `after_commit on: :destroy`.
  3. @sergey-alekseev

    skip `test_counter_cache_column_update_on_really_destroy` for Rails 4.1

    sergey-alekseev authored
    My goal is Rails 4.2 support and it works well with Rails 4.2. I’m
    leaving this bug not fixed for Rails 4.1 for the time being.
  4. @sergey-alekseev

    DRY records creation

    sergey-alekseev authored
  5. @sergey-alekseev

    fix `test_counter_cache_column_update_on_destroy` for Rails 4.2

    sergey-alekseev authored
    This is a workaround actually. Since
    `ActiveRecord::CounterCache.each_counter_cached_associations` is
    private. We shouldn’t use it. Proposals for the proper fix are welcome.
    The reason the previous version stopped working is `affected_rows`
    returns `0` at
    d/counter_cache.rb#L142). If you follow the method call you’ll find
    that it’s called at
    persistence.rb#L486). Probably we’d better override the return value in
    `ActiveRecord::Relation.delete_all` at
  6. @sergey-alekseev
  7. @sergey-alekseev
  8. @sergey-alekseev

    add deprecation warning for `.restore` with object

    sergey-alekseev authored
    > Deprecated passing Active Record objects to .find or .exists?. Call
    id on the objects first.
    Commits in Rails:
  9. @sergey-alekseev
  10. Merge pull request #213 from stgeneral/patch-1

    Update README about rails3 branch
Commits on Feb 16, 2015
  1. Merge pull request #214 from jdurand/patch-1

  2. @jdurand


    jdurand authored
  3. @jdurand


    jdurand authored
    Add a mention for #109 (comment)
Commits on Feb 15, 2015
  1. @stgeneral
Commits on Feb 9, 2015
  1. @jhawthorn

    Remove README advice on sentinel values

    jhawthorn authored
    I think this advice is misleading for most datasets and most RDBMS this
    is not necessary, and as per #206 doesn't even work.
    I have moved it to the wiki
Commits on Jan 24, 2015
  1. @jhawthorn

    Bump version to 2.1.0

    jhawthorn authored
  2. @jhawthorn

    Update changelog for 2.1.0

    jhawthorn authored
Commits on Jan 22, 2015
  1. @nbrookie @jhawthorn

    Test for 'cannot touch a new record object' error.

    nbrookie authored jhawthorn committed
    This is a test for a case when a model has a has_one association with an
    after_validation callback, and we have failed validation. Paranoia will
    attempt to touch the deleted_at column on the child record that has
    been built but not saved.
    Fixes #180
  2. @jhawthorn

    Bump version to 2.1.0.pre

    jhawthorn authored
  3. @jhawthorn
  4. @jhawthorn

    Use minitest for all AR versions

    jhawthorn authored
    This allows testing rails 4.0 on ruby 2.2
  5. @jhawthorn
  6. @jhawthorn

    Test for double destroy!

    jhawthorn authored
  7. @jhawthorn

    Test against ruby 2.2

    jhawthorn authored
  8. @jhawthorn

    Rename delete! really_delete

    jhawthorn authored
  9. @jhawthorn

    Remove test for .destroy! in AR 4.1

    jhawthorn authored
    We no longer have different behaviour between AR versions.
  10. @jhawthorn

    Remove persisted?

    jhawthorn authored
    We shouldn't be overriding this. soft-deleted objects are still
  11. @jhawthorn

    Remove destroy!

    jhawthorn authored
    The default implementation is already destroy || raise
  12. @jhawthorn
  13. @jhawthorn

    Simplify destroy!

    jhawthorn authored
Something went wrong with that request. Please try again.