From 9f97deae889e1a51481a8ad292f08f8f8f9f1712 Mon Sep 17 00:00:00 2001 From: JoenioCosta Date: Fri, 6 Jun 2008 18:17:14 +0000 Subject: [PATCH] ActionItem328: oops: more s/consumed products/raw materials/g --- app/controllers/my_profile/manage_products_controller.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/controllers/my_profile/manage_products_controller.rb b/app/controllers/my_profile/manage_products_controller.rb index 993ccda..ba4f220 100644 --- a/app/controllers/my_profile/manage_products_controller.rb +++ b/app/controllers/my_profile/manage_products_controller.rb @@ -62,10 +62,10 @@ class ManageProductsController < ApplicationController @consumption = @profile.consumptions.build(params[:consumption]) if request.post? if @consumption.save - flash[:notice] = _('Product succesfully created') + flash[:notice] = _('Raw material succesfully created') redirect_to :action => 'index' else - flash[:notice] = _('Could not create the product') + flash[:notice] = _('Could not create the raw material') end end end @@ -73,9 +73,9 @@ class ManageProductsController < ApplicationController def destroy_consumption @consumption = @profile.consumptions.find(params[:id]) if @consumption.destroy - flash[:notice] = _('Product succesfully removed') + flash[:notice] = _('Raw material succesfully removed') else - flash[:notice] = _('Could not remove the product') + flash[:notice] = _('Could not remove the raw material') end redirect_back_or_default :action => 'index' end @@ -84,10 +84,10 @@ class ManageProductsController < ApplicationController @consumption = @profile.consumptions.find(params[:id]) if request.post? if @consumption.update_attributes(params[:consumption]) - flash[:notice] = _('Consumed product succesfully updated') + flash[:notice] = _('Raw material succesfully updated') redirect_back_or_default :action => 'index' else - flash[:notice] = _('Could not update the consumed product') + flash[:notice] = _('Could not update the raw material') end end end -- libgit2 0.21.2