diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-26 16:39:27 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-26 16:39:27 +0100 |
commit | 52f6d8691cd014b7dc94f5cc7a9ad8dff8a4b6cf (patch) | |
tree | b2ea7c9274571670439c1907f2f2189afd00f765 /app/controllers | |
parent | af4a02e15a02481e23f9458ae0a430ec52c57417 (diff) | |
parent | c7b119d19bb866630ce9b152b28308ae3487a77f (diff) |
Merge branch 'call_histories' into develop
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/call_histories_controller.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/controllers/call_histories_controller.rb b/app/controllers/call_histories_controller.rb index 5335ed3..2bfd4e3 100644 --- a/app/controllers/call_histories_controller.rb +++ b/app/controllers/call_histories_controller.rb @@ -44,7 +44,10 @@ class CallHistoriesController < ApplicationController if can?(:destroy, @call_history) @call_history.destroy m = method( :"#{@parent.class.name.underscore}_call_histories_url" ) - redirect_to m.(), :notice => t('call_histories.controller.successfuly_destroyed') + respond_to do |format| + format.html { redirect_to m.(), :notice => t('call_histories.controller.successfuly_destroyed')} + format.js + end end end |