[#4177] Scope the finders on ContractsController to use the current project.

This commit is contained in:
Eric Davis
2010-06-17 16:02:31 -07:00
parent 736f315b36
commit 793fe165c1
3 changed files with 32 additions and 10 deletions
+6
View File
@@ -6,6 +6,12 @@ class ContractsController < InheritedResources::Base
before_filter :find_project
before_filter :authorize
protected
def begin_of_association_chain
@project
end
private
def find_project