Skip to content

Commit

Permalink
Inactive clients should be included in select on edit project page
Browse files Browse the repository at this point in the history
  • Loading branch information
Ania committed Dec 14, 2010
1 parent 6de8ba3 commit 3c46e37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/projects.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class Projects < Application
before :ensure_can_list_projects, :only => [:index]
before :load_project, :only => [:edit, :update, :destroy, :show]
before :load_projects, :only => [:index, :create]
before :load_clients, :only => [:index, :new, :create, :edit, :update]
before :load_clients, :only => [:index, :new, :create, :update]

def index
@project = Project.new :client => Client.get(params[:client_id])
Expand Down Expand Up @@ -36,6 +36,7 @@ def create
end

def edit
@clients = Client.all
render
end

Expand Down

0 comments on commit 3c46e37

Please sign in to comment.