Class: AtlasEngine::ConnectivityController

Inherits:
ApplicationController show all
Defined in:
app/controllers/atlas_engine/connectivity_controller.rb

Instance Method Summary collapse

Constructor Details

#initializeConnectivityController

Returns a new instance of ConnectivityController.



6
7
8
9
10
11
12
13
14
# File 'app/controllers/atlas_engine/connectivity_controller.rb', line 6

def initialize
  super
  @repository = AtlasEngine::Elasticsearch::Repository.new(
    index_base_name: "",
    index_settings: {},
    index_mappings: {},
    mapper_callable: nil,
  )
end

Instance Method Details

#indexObject



16
17
18
19
# File 'app/controllers/atlas_engine/connectivity_controller.rb', line 16

def index
  @indices = @repository.indices
  @post_addresses = AtlasEngine::PostAddress.limit(10)
end