app/controllers/rostra/comments_controller.rb in rostra-0.0.14 vs app/controllers/rostra/comments_controller.rb in rostra-0.0.15

- old
+ new

@@ -1,31 +1,5 @@ module Rostra - class CommentsController < ApplicationController - load_and_authorize_resource - - before_filter :fetch_question - - def create - - if @comment.save - redirect_to @question - end - end - - def update - @comment.update_attributes(:comment => params[:value]) - render :text => @comment.comment - end - - def destroy - @comment.destroy - redirect_to @question - end - - private - - def fetch_question - @question = Question.find(params[:question_id]) - end - + class CommentsController < Rostra::Base::CommentsController + # Override existing actions here end end