Skip to content

Commit

Permalink
⚠️ instance variable @_disable_counter_cache not initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed May 30, 2017
1 parent c1232a3 commit 91ee3f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/paranoia.rb
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def really_destroy!
private

def each_counter_cached_associations
!@_disable_counter_cache && defined?(super) ? super : []
!(defined?(@_disable_counter_cache) && @_disable_counter_cache) && defined?(super) ? super : []
end

def paranoia_restore_attributes
Expand Down

0 comments on commit 91ee3f3

Please sign in to comment.