Commit bf97dd96 by Ben A. Morgan Committed by GitHub

Merge pull request #408 from amatsuda/warning

 instance variable @_disable_counter_cache not initialized
parents c1232a37 b41cf18f
...@@ -174,7 +174,7 @@ module Paranoia ...@@ -174,7 +174,7 @@ module Paranoia
private private
def each_counter_cached_associations def each_counter_cached_associations
!@_disable_counter_cache && defined?(super) ? super : [] !(defined?(@_disable_counter_cache) && @_disable_counter_cache) ? super : []
end end
def paranoia_restore_attributes def paranoia_restore_attributes
......
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