Commit d252fabd by Sergey Alekseev

I asked about `restore` in the
[Notes](https://github.com/radar/paranoia/pull/192#issue-51914917) of
the PR's description. Personally I don't need such a behaviour. So
removing.
parent 5fef21d8
......@@ -770,10 +770,6 @@ class ParanoiaTest < test_framework
assert_equal 1, parent_model_with_counter_cache_column.reload.related_models_count
related_model.destroy
assert_equal 0, parent_model_with_counter_cache_column.reload.related_models_count
# related_model.restore
# assert_equal 1, parent_model_with_counter_cache_column.reload.related_models_count
# related_model.really_destroy!
# assert_equal 0, parent_model_with_counter_cache_column.reload.related_models_count
end
def test_callbacks_for_counter_cache_column_update_on_destroy
......@@ -991,8 +987,6 @@ class FlaggedModelWithCustomIndex < PlainModel
acts_as_paranoid :flag_column => :is_deleted, :indexed_column => :is_deleted
end
class AsplodeModel < ActiveRecord::Base
acts_as_paranoid
before_destroy do |r|
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment