Class: ActiveRecord::Reflection::AssociationReflection

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)


14
15
16
# File 'lib/activerecord_reindex/association_reflection.rb', line 14

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

#reindex_sync?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/activerecord_reindex/association_reflection.rb', line 10

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