Sha256: 33ad00c4b8f40bdf6335ed6d734da4dc64eabbac0b292b3c3cd5207f02d33dbd
Contents?: true
Size: 624 Bytes
Versions: 135
Compression:
Stored size: 624 Bytes
Contents
require_dependency "apidae/application_controller" module Apidae class ApiController < ApplicationController 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 def object end 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 end end
Version data entries
135 entries across 135 versions & 1 rubygems