Skip to content

Commit

Permalink
Merge pull request rubysherpas#408 from amatsuda/warning
Browse files Browse the repository at this point in the history
⚠ instance variable @_disable_counter_cache not initialized
  • Loading branch information
BenMorganIO authored May 31, 2017
2 parents c1232a3 + b41cf18 commit bf97dd9
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) ? super : []
end

def paranoia_restore_attributes
Expand Down

0 comments on commit bf97dd9

Please sign in to comment.