Permalink
Browse files

fix accept/reject stuff

  • Loading branch information...
1 parent bde23f5 commit d37f882bfac16e524ca17669846b5dc2f15fe007 @matthewlehner matthewlehner committed Nov 3, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 app/controllers/reviews_controller.rb
  2. +1 −1 app/models/review.rb
@@ -6,7 +6,7 @@ def index
end
def accept
- review = Review.find(params[:id])
+ review = Review.find(params[:review_id])
review.accept
redirect_to reviews_path, :notice => "Changes Accepted"
end
View
@@ -10,7 +10,7 @@ def reject!
if event == 'create'
item.destroy
else
- object = review.reify
+ object = self.reify
object.save!
end
item_type.constantize.paper_trail_on

0 comments on commit d37f882

Please sign in to comment.