Project

General

Profile

« Previous | Next » 

Revision f9bc5a8e

Added by Daniel Lobato Garcia over 10 years ago

fixes #3920 - prevent 500 ScopedSearch errors on the API, raise UI errors correctly

View differences:

app/controllers/models_controller.rb
def index
@models = Model.search_for(params[:search], :order => params[:order]).paginate(:page => params[:page])
@counter = Host.group(:model_id).where(:model_id => @models.pluck(:id)).count
@host_counter = Host.group(:model_id).where(:model_id => @models.pluck(:id)).count
end
def new

Also available in: Unified diff