Module: Lyra::Interceptors::AssociationInterceptor::BelongsToAssociationPatch

Defined in:
lib/lyra/interceptors/association_interceptor.rb

Instance Method Summary collapse

Instance Method Details

#find_target(async: false) ⇒ Object

Rails 8+ passes async: keyword argument to find_target



16
17
18
19
20
21
22
# File 'lib/lyra/interceptors/association_interceptor.rb', line 16

def find_target(async: false)
  if lyra_should_use_cache?
    lyra_find_target_from_cache
  else
    super
  end
end