Commit 7f883b128a766f303f0b5c45143b493c904f2651
Committed by
Nick Recobra
1 parent
0984139a
Exists in
master
and in
1 other branch
Fix bug in finding app for deployment index screen.
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/deploys_controller.rb
| @@ -15,7 +15,7 @@ class DeploysController < ApplicationController | @@ -15,7 +15,7 @@ class DeploysController < ApplicationController | ||
| 15 | end | 15 | end |
| 16 | 16 | ||
| 17 | def index | 17 | def index |
| 18 | - app = current_user.apps.find(:conditions => {:name => params[:app_id]}).first | 18 | + app = current_user.apps.find(params[:app_id]).first |
| 19 | 19 | ||
| 20 | @deploys = app.deploys.order_by(:created_at.desc).paginate(:page => params[:page], :per_page => 10) | 20 | @deploys = app.deploys.order_by(:created_at.desc).paginate(:page => params[:page], :per_page => 10) |
| 21 | end | 21 | end |