summaryrefslogtreecommitdiff
path: root/app/controllers/gui_functions_controller.rb
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-15 20:44:45 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-15 20:44:45 +0100
commitfefbc85c45fdb3b8353fc9011ef74010242b73d4 (patch)
tree7b24d6792d946d8327570a9212a0f7c121192fed /app/controllers/gui_functions_controller.rb
parent4fbda07c7b593dcc22b90f571d1b85b1bdc47528 (diff)
parent907d081bf1b45e876f9d5833bfe1f4d6319aeb81 (diff)
Merge branch 'fix_breadcrumbs' into develop
Diffstat (limited to 'app/controllers/gui_functions_controller.rb')
-rw-r--r--app/controllers/gui_functions_controller.rb12
1 files changed, 5 insertions, 7 deletions
diff --git a/app/controllers/gui_functions_controller.rb b/app/controllers/gui_functions_controller.rb
index 2ab2c5e..0cb7898 100644
--- a/app/controllers/gui_functions_controller.rb
+++ b/app/controllers/gui_functions_controller.rb
@@ -1,4 +1,6 @@
class GuiFunctionsController < ApplicationController
+ load_resource :gui_function
+
before_filter :load_user_groups
before_filter :spread_breadcrumbs
@@ -60,14 +62,10 @@ class GuiFunctionsController < ApplicationController
end
def spread_breadcrumbs
- if @tenant
- add_breadcrumb t("user_groups.index.page_title"), tenant_user_groups_path(@tenant)
- if @user_group && !@user_group.new_record?
- add_breadcrumb @user_group, tenant_user_group_path(@tenant, @user_group)
- end
- end
-
add_breadcrumb t("gui_functions.index.page_title"), gui_functions_path
+ if @gui_function && !@gui_function.new_record?
+ add_breadcrumb @gui_function, gui_function_path(@gui_function)
+ end
end
end