lib/identity_cache/cached/association.rb in identity_cache-1.1.0 vs lib/identity_cache/cached/association.rb in identity_cache-1.2.0

- old
+ new

@@ -1,6 +1,7 @@ # frozen_string_literal: true + module IdentityCache module Cached class Association # :nodoc: include EmbeddedFetching @@ -48,13 +49,10 @@ def embedded_recursively? raise NotImplementedError end def inverse_name - @inverse_name ||= begin - reflection.inverse_of&.name || - reflection.active_record.name.underscore - end + @inverse_name ||= reflection.inverse_of&.name || reflection.active_record.name.underscore end def validate parent_class = reflection.active_record child_class = reflection.klass