Module: CurationConcerns::AdminControllerBehavior

Extended by:
ActiveSupport::Concern
Included in:
AdminController
Defined in:
app/controllers/concerns/curation_concerns/admin_controller_behavior.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



10
11
12
13
# File 'app/controllers/concerns/curation_concerns/admin_controller_behavior.rb', line 10

def index
  @resource_statistics = @configuration.fetch(:data_sources).fetch(:resource_stats).new
  render 'index'
end

#repositoryObject



19
20
21
# File 'app/controllers/concerns/curation_concerns/admin_controller_behavior.rb', line 19

def repository
  @repository ||= ::CatalogController.new.repository
end

#search_builderObject



15
16
17
# File 'app/controllers/concerns/curation_concerns/admin_controller_behavior.rb', line 15

def search_builder
  @search_builder ||= ::CatalogController.new.search_builder
end

#workflowObject



23
24
25
# File 'app/controllers/concerns/curation_concerns/admin_controller_behavior.rb', line 23

def workflow
  @status_list = CurationConcerns::Workflow::StatusListService.new(current_user)
end