summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-03-21 12:00:22 +0100
committerPeter Kozak <spag@golwen.net>2013-03-21 12:00:22 +0100
commit68a4b0e40586aa6d11599b68b81e7e9c7f623f71 (patch)
tree5b92ebc7fe11ffc64739a5d18fdee113c96908f2 /app
parent706ffe50d3bb6270682783acc1e7817e8f7cf0f6 (diff)
destroy action redirect fixed
Diffstat (limited to 'app')
-rw-r--r--app/controllers/sip_accounts_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/sip_accounts_controller.rb b/app/controllers/sip_accounts_controller.rb
index 0d7cbfe..0d34109 100644
--- a/app/controllers/sip_accounts_controller.rb
+++ b/app/controllers/sip_accounts_controller.rb
@@ -75,7 +75,7 @@ class SipAccountsController < ApplicationController
def destroy
@sip_account.destroy
m = method( :"#{@parent.class.name.underscore}_sip_accounts_url" )
- redirect_to :root, :notice => t('sip_accounts.controller.successfuly_destroyed')
+ redirect_to m.(@parent), :notice => t('sip_accounts.controller.successfuly_destroyed')
end
private