Module: ActiverecordReindex

Defined in:
lib/activerecord_reindex/adapter.rb,
lib/activerecord_reindex.rb,
lib/activerecord_reindex/version.rb,
lib/activerecord_reindex/reindexer.rb,
lib/activerecord_reindex/reindex_hook.rb,
lib/activerecord_reindex/sync_adapter.rb,
lib/activerecord_reindex/async_adapter.rb,
lib/activerecord_reindex/reflection_reindex.rb

Overview

author: Vadim Shaveiko <@vshaveyko> helpers for reindexing all required reflections on record’s class

Defined Under Namespace

Modules: ReflectionReindex, ReindexHook Classes: Adapter, AsyncAdapter, Config, ElasticsearchProxy, Reindexer, SyncAdapter

Constant Summary collapse

VERSION =
'0.2.2'

Class Method Summary collapse

Class Method Details

.configObject



36
37
38
# File 'lib/activerecord_reindex.rb', line 36

def config
  @_configuration ||= Config.new
end

.configure {|config| ... } ⇒ Object

Yields:



32
33
34
# File 'lib/activerecord_reindex.rb', line 32

def configure
  yield config
end

.reset_configurationObject



40
41
42
# File 'lib/activerecord_reindex.rb', line 40

def reset_configuration
  @_configuration = nil
end