1 class Arvados::V1::LogsController < ApplicationController
2 # Overrides ApplicationController load_where_param
6 # object_kind and column is now virtual,
7 # equivilent functionality is now provided by
8 # 'is_a', so fix up any old-style 'where' clauses.
11 if @where[:object_kind]
12 @filters << ['object_uuid', 'is_a', @where[:object_kind]]
13 @where.delete :object_kind
18 # Overrides ApplicationController load_filters_param
19 def load_filters_param
22 # object_kind and column is now virtual,
23 # equivilent functionality is now provided by
24 # 'is_a', so fix up any old-style 'filter' clauses.
25 @filters = @filters.map do |k|
26 if k[0] == 'object_kind' and k[1] == '='
27 ['object_uuid', 'is_a', k[2]]