Modified: trunk/app/controllers/comments_controller.rb (2913 => 2914)
--- trunk/app/controllers/comments_controller.rb 2012-01-20 14:55:05 UTC (rev 2913)
+++ trunk/app/controllers/comments_controller.rb 2012-01-20 15:55:11 UTC (rev 2914)
@@ -35,6 +35,7 @@
if text and text.length > 0
comment = Comment.create(:user => current_user, :comment => text)
@context.comments << comment
+ @context.solr_save if @context.respond_to?(:solr_save)
end
respond_to do |format|
@@ -49,6 +50,7 @@
# DELETE /:context_type/:context_id/comments/:id
def destroy
@comment.destroy
+ @context.solr_save if @context.respond_to?(:solr_save)
respond_to do |format|
format.html { render :partial => "comments/comments", :locals => { :commentable => @context } }