Commit 91ee3f35 by Akira Matsuda

instance variable @_disable_counter_cache not initialized

parent c1232a37
......@@ -174,7 +174,7 @@ module Paranoia
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
......
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