Class: Apidae::ApiController
Instance Method Summary
collapse
#apidae_user, #check_user_data!, #user_has_data?, #user_is_admin?
Instance Method Details
#agenda ⇒ Object
17
18
19
20
21
22
23
|
# File 'app/controllers/apidae/api_controller.rb', line 17
def agenda
@objects = []
unless params[:selection_id].blank?
objects_ids = Selection.find(params[:selection_id]).api_agenda(params[:from], params[:to])[:results]
@objects = Obj.where(id: objects_ids)
end
end
|
#object ⇒ Object
14
15
|
# File 'app/controllers/apidae/api_controller.rb', line 14
def object
end
|
#selection ⇒ Object
6
7
8
9
10
11
12
|
# File 'app/controllers/apidae/api_controller.rb', line 6
def selection
@objects = []
unless params[:selection_id].blank?
objects_ids = Selection.find(params[:selection_id]).api_results[:results]
@objects = Obj.where(id: objects_ids)
end
end
|