Class: CachedMapsController
Instance Method Summary
collapse
#annotator_params
#destroy_redirect
#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
#intercept_api
#intercept_project, #intercept_user, #intercept_user_or_project, #project_token_authenticate, #token_authenticate
Instance Method Details
#api_show ⇒ Object
9
10
11
|
# File 'app/controllers/cached_maps_controller.rb', line 9
def api_show
render '/cached_maps/api/v1/show'
end
|
#set_cached_map ⇒ Object
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
|
#show ⇒ Object
6
7
|
# File 'app/controllers/cached_maps_controller.rb', line 6
def show
end
|
#update ⇒ Object
13
14
15
|
# File 'app/controllers/cached_maps_controller.rb', line 13
def update
@cached_map.update!(force_rebuild: true)
end
|