Class: ActiveRecord::Reflection::ThroughReflection

Inherits:
Object
  • Object
show all
Defined in:
lib/activerecord_reindex/association_reflection.rb

Instance Method Summary collapse

Instance Method Details

#reindex_async?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/activerecord_reindex/association_reflection.rb', line 26

def reindex_async?
  @delegate_reflection.options.fetch(:reindex, false) == :async
end

#reindex_sync?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/activerecord_reindex/association_reflection.rb', line 22

def reindex_sync?
  @delegate_reflection.options.fetch(:reindex, false) == true
end