From 7f883b128a766f303f0b5c45143b493c904f2651 Mon Sep 17 00:00:00 2001 From: Barry Hess Date: Tue, 4 Jan 2011 17:20:02 -0600 Subject: [PATCH] Fix bug in finding app for deployment index screen. --- app/controllers/deploys_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/deploys_controller.rb b/app/controllers/deploys_controller.rb index 30f6811..225bd8e 100644 --- a/app/controllers/deploys_controller.rb +++ b/app/controllers/deploys_controller.rb @@ -15,7 +15,7 @@ class DeploysController < ApplicationController end def index - app = current_user.apps.find(:conditions => {:name => params[:app_id]}).first + app = current_user.apps.find(params[:app_id]).first @deploys = app.deploys.order_by(:created_at.desc).paginate(:page => params[:page], :per_page => 10) end -- libgit2 0.21.2