fix i18n bug

This commit is contained in:
wvengen 2013-06-06 02:13:40 +02:00
parent fb6196b78b
commit c38ce28347

View file

@ -13,8 +13,8 @@ class Admin::WorkgroupsController < Admin::BaseController
def destroy def destroy
@workgroup = Workgroup.find(params[:id]) @workgroup = Workgroup.find(params[:id])
@workgroup.destroy @workgroup.destroy
redirect_to admin_workgroups_url, notice: t('admin.ordergroups.destroy.notice') redirect_to admin_workgroups_url, notice: t('admin.workgroups.destroy.notice')
rescue => error rescue => error
redirect_to admin_workgroups_url, alert: t('admin.ordergroups.destroy.error') redirect_to admin_workgroups_url, alert: t('admin.workgroups.destroy.error')
end end
end end