Class: AdministrationController

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

Overview

This is a top-level class documentation comment for the Administration Controller

Constant Summary

Constants included from ProjectsHelper

ProjectsHelper::CLASSIFIER, ProjectsHelper::CLASSIFIER_ANNOTATION

Instance Method Summary collapse

Methods included from RedirectHelper

#destroy_redirect

Methods included from RequestType

#json_request?

Methods included from LogRecent

#log_user_recent_route

Methods included from Cookies

#digest_cookie, #digested_cookie_exists?

Methods included from Whitelist

#whitelist_constantize

Methods included from ProjectsHelper

#cumulative_gb_per_year, #document_cumulative_gb_per_year, #document_gb_per_year, #gb_per_year, #image_cumulative_gb_per_year, #image_gb_per_year, #invalid_object, #project_classification, #project_link, #project_matches, #project_tag, #projects_list, #projects_search_form, #taxonworks_classification

Methods included from Api::Intercept

#intercept_api

Methods included from TokenAuthentication

#intercept_project, #intercept_user, #intercept_user_or_project, #project_token_authenticate, #token_authenticate

Instance Method Details

#data_class_summaryObject



22
23
24
25
26
27
28
29
# File 'app/controllers/administration_controller.rb', line 22

def data_class_summary
  @klass = params.require(:klass)&.safe_constantize
  @time_span = params.require(:time_span)
  @target = params.require(:target)
  @projects = params[:project_id].blank? ? Project.all : Project.where(id: params[:project_id])
  @start_date = params[:start_date].blank? ? 1000.year.ago.to_date : params[:start_date]
  @end_date = params[:end_date].blank? ? 1.day.from_now.to_date : params[:end_date]
end

#data_healthObject



16
17
# File 'app/controllers/administration_controller.rb', line 16

def data_health
end

#data_overviewObject



13
14
# File 'app/controllers/administration_controller.rb', line 13

def data_overview
end

#data_reindexObject



19
20
# File 'app/controllers/administration_controller.rb', line 19

def data_reindex
end

#indexObject



7
8
# File 'app/controllers/administration_controller.rb', line 7

def index
end

#user_activityObject



10
11
# File 'app/controllers/administration_controller.rb', line 10

def user_activity
end