diff options
Diffstat (limited to 'app/controllers/members_controller.rb')
-rw-r--r-- | app/controllers/members_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/members_controller.rb b/app/controllers/members_controller.rb index e3f4a16e6..14c65d747 100644 --- a/app/controllers/members_controller.rb +++ b/app/controllers/members_controller.rb @@ -17,6 +17,7 @@ class MembersController < ApplicationController before_filter :find_member, :except => [:new, :autocomplete_for_member] + before_filter :find_project_from_association, :except => [:new, :autocomplete_for_member] before_filter :find_project, :only => [:new, :autocomplete_for_member] before_filter :authorize @@ -75,8 +76,7 @@ class MembersController < ApplicationController private def find_member - @member = Member.find(params[:id]) - @project = @member.project + @member = @object = Member.find(params[:id]) rescue ActiveRecord::RecordNotFound render_404 end |