Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Simplify default_breadcrumb method

Dombi Attila9865cc788014
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 7ff88e514db..1f77a494fd0 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -574,7 +574,7 @@ class ApplicationController < ActionController::Base
end
def default_breadcrumb
- label = "label_#{self.class.name.demodulize.gsub('Controller', '').underscore.singularize}"
+ label = "label_#{controller_name.singularize}"
I18n.t(label + '_plural',
default: label.to_sym)