Modified: branches/events/app/controllers/reviews_controller.rb (3117 => 3118)
--- branches/events/app/controllers/reviews_controller.rb 2012-08-25 16:23:52 UTC (rev 3117)
+++ branches/events/app/controllers/reviews_controller.rb 2012-08-25 16:44:09 UTC (rev 3118)
@@ -63,6 +63,7 @@
respond_to do |format|
if @review.save
+ Activity.create(:subject => current_user, :action ="" 'create', :objekt => @review, :auth => @reviewable, :extra => params[:rating].to_i)
update_rating(@review, params[:rating])
flash[:notice] = 'Thank you for your review!'
format.html { redirect_to workflow_review_url(@reviewable, @review) }
@@ -81,6 +82,7 @@
def update
respond_to do |format|
if @review.update_attributes(params[:review])
+ Activity.create(:subject => current_user, :action ="" 'edit', :objekt => @review, :auth => @reviewable, :extra => params[:rating].to_i)
update_rating(@review, params[:rating])
flash[:notice] = 'Review was successfully updated.'
format.html { redirect_to workflow_review_url(@reviewable, @review) }
Modified: branches/events/app/helpers/application_helper.rb (3117 => 3118)
--- branches/events/app/helpers/application_helper.rb 2012-08-25 16:23:52 UTC (rev 3117)
+++ branches/events/app/helpers/application_helper.rb 2012-08-25 16:44:09 UTC (rev 3118)
@@ -639,6 +639,8 @@
when "Comment create": "#{subject_link(activity)} commented on #{objekt_link(activity)}"
when "Pack create": "#{subject_link(activity)} created #{objekt_link(activity)}"
when "Rating create": "#{subject_link(activity)} rated #{auth_link(activity)} with #{activity.extra}"
+ when "Review create": "#{subject_link(activity)} added a review on #{auth_link(activity)}"
+ when "Review edit": "#{subject_link(activity)} edited a review on #{auth_link(activity)}"
when "Tagging create": "#{subject_link(activity)} tagged #{auth_link(activity)} with "#{activity.objekt.tag.name}""
when "Workflow create": "#{subject_link(activity)} uploaded #{objekt_link(activity)}"
when "Workflow edit": "#{subject_link(activity)} edited #{objekt_link(activity)}"