diff options
author | Peter Kozak <spag@golwen.net> | 2013-07-25 08:23:13 +0200 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-07-25 08:23:13 +0200 |
commit | a1e165c16e9ca1d5756e5698d3352fdbfbc9443a (patch) | |
tree | 58c9f9423ef7118793b86abf3a239c45b6c10221 /app | |
parent | 07f1bd571480dd091d307c815c4942e9cde60180 (diff) |
reboot action added
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/extension_modules_controller.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/controllers/extension_modules_controller.rb b/app/controllers/extension_modules_controller.rb index 3a155a1..3f8fe98 100644 --- a/app/controllers/extension_modules_controller.rb +++ b/app/controllers/extension_modules_controller.rb @@ -44,6 +44,14 @@ class ExtensionModulesController < ApplicationController redirect_to phone_extension_modules_url(@phone), :notice => t('extension_modules.controller.successfuly_destroyed') end + def restart + if @extension_module.resync + redirect_to phone_extension_module_path(@phone, @extension_module), :notice => t('extension_modules.controller.restart_invoked') + else + redirect_to phone_extension_module_path(@phone, @extension_module), :error => t('extension_modules.controller.restart_failed') + end + end + private def spread_breadcrumbs if @phone.phoneable.class == User |