Revision fee0b7af
Added by Ohad Levy almost 14 years ago
- ID fee0b7af72064c5cfe457c1e29e3b67d7b904194
app/controllers/hosts_controller.rb | ||
---|---|---|
|
||
def index
|
||
@search = Host.search(params[:search])
|
||
@hosts = @search.paginate :page => params[:page]
|
||
@hosts = @search.paginate :page => params[:page], :include => [:hostgroup, :domain, :operatingsystem, :environment]
|
||
@via = "fact_values_"
|
||
@last_reports = Report.maximum(:id, :group => :host_id, :conditions => {:host_id => @hosts})
|
||
end
|
||
|
||
def show
|
Also available in: Unified diff
Minor SQL optimization to hosts page