Class: CachedMapsController

Inherits:
ApplicationController show all
Includes:
DataControllerConfiguration::ProjectDataControllerConfiguration
Defined in:
app/controllers/cached_maps_controller.rb

Constant Summary

Constants included from ProjectsHelper

ProjectsHelper::CLASSIFIER, ProjectsHelper::CLASSIFIER_ANNOTATION

Instance Method Summary collapse

Methods included from DataControllerConfiguration::ProjectDataControllerConfiguration

#annotator_params

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, #week_in_review_graphs

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

#api_showObject



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

def api_show
  render '/cached_maps/api/v1/show'
end

#set_cached_mapObject (private)



19
20
21
22
23
24
25
# File 'app/controllers/cached_maps_controller.rb', line 19

def set_cached_map
  @cached_map = CachedMap.select(
    :id, :otu_id,
    :reference_count, :cached_map_type,
    :updated_at, :created_at
    ).where(project_id: sessions_current_project_id).find(params[:id])
end

#showObject



6
7
# File 'app/controllers/cached_maps_controller.rb', line 6

def show
end

#updateObject



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

def update
  @cached_map.update!(force_rebuild: true)
end