summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/sip_accounts_controller.rb2
-rw-r--r--app/controllers/user_groups_controller.rb2
-rw-r--r--app/controllers/users_controller.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/sip_accounts_controller.rb b/app/controllers/sip_accounts_controller.rb
index 4d042b3..a83208b 100644
--- a/app/controllers/sip_accounts_controller.rb
+++ b/app/controllers/sip_accounts_controller.rb
@@ -71,7 +71,7 @@ class SipAccountsController < ApplicationController
def destroy
@sip_account.destroy
m = method( :"#{@parent.class.name.underscore}_sip_accounts_url" )
- redirect_to m.( @parent ), :notice => t('sip_accounts.controller.successfuly_destroyed')
+ redirect_to :back, :notice => t('sip_accounts.controller.successfuly_destroyed')
end
private
diff --git a/app/controllers/user_groups_controller.rb b/app/controllers/user_groups_controller.rb
index ff3292c..9e08ff1 100644
--- a/app/controllers/user_groups_controller.rb
+++ b/app/controllers/user_groups_controller.rb
@@ -38,7 +38,7 @@ class UserGroupsController < ApplicationController
def destroy
@user_group.destroy
- redirect_to method( :"#{@parent.class.name.underscore}_user_groups_path" ).(@parent), :notice => t('user_groups.controller.successfuly_destroyed')
+ redirect_to :back, :notice => t('user_groups.controller.successfuly_destroyed')
end
private
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb
index 7af8e68..584d08c 100644
--- a/app/controllers/users_controller.rb
+++ b/app/controllers/users_controller.rb
@@ -52,7 +52,7 @@ class UsersController < ApplicationController
def destroy
@user.destroy
- redirect_to @parent, :notice => t('users.controller.successfuly_destroyed')
+ redirect_to :back, :notice => t('users.controller.successfuly_destroyed')
end
def destroy_avatar