Project

General

Profile

Revision c80f3b10

Added by Tom Caspy almost 7 years ago

fixes #7230 - rails 4 compatibility

View differences:

app/controllers/api/v2/containers_controller.rb
20 20
        if params[:compute_resource_id].present?
21 21
          scoped = Container.where(:compute_resource_id => params[:compute_resource_id])
22 22
        else
23
          scoped = Container.scoped
23
          scoped = Container.where(nil)
24 24
        end
25 25
        @containers = scoped.search_for(params[:search], :order => params[:order])
26 26
                      .paginate(:page => params[:page])

Also available in: Unified diff