offset = 0
end
- @objects ||= model_class.limit(limit).offset(offset).all
+ if params[:filters]
+ filters = params[:filters]
+ if filters.is_a? String
+ filters = Oj.load filters
+ end
+ else
+ filters = []
+ end
+
+ @objects ||= model_class.filter(filters).limit(limit).offset(offset).all
respond_to do |f|
f.json { render json: @objects }
f.html { render }
class Log < ArvadosBase
attr_accessor :object
+ def self.creatable?
+ # Technically yes, but not worth offering: it will be empty, and
+ # you won't be able to edit it.
+ false
+ end
end
<% end %>
<% if @logs.any? %>
<%= link_to raw('Show all activity <i class="fa fa-hand-o-right"></i>'),
- logs_path(filters: [['object_uuid','=',@object.uuid]]),
+ logs_path(filters: [['object_uuid','=',@object.uuid]].to_json),
class: 'btn btn-sm btn-info' %>
<% else %>
<p>
+++ /dev/null
-<%= render :partial => 'application/arvados_object' %>