Skip to content

Commit

Permalink
Removed r_c from Admin::ReviewsController
Browse files Browse the repository at this point in the history
  • Loading branch information
romul committed Jun 27, 2011
1 parent bead1af commit bdb7e07
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions app/controllers/admin/reviews_controller.rb
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
class Admin::ReviewsController < Admin::BaseController
resource_controller
class Admin::ReviewsController < Admin::ResourceController
helper :reviews

def index
@unapproved_reviews = Review.not_approved.find(:all, :order => "created_at DESC")
@approved_reviews = Review.approved.find(:all, :order => "created_at DESC")
end

create.response do |wants|
wants.html { redirect_to admin_reviews_path }
end

update.response do |wants|
wants.html { redirect_to admin_reviews_path }
end

def approve
r = Review.find(params[:id])

Expand Down

0 comments on commit bdb7e07

Please sign in to comment.