Error after install on fresh 4.1.1 #193

This commit is contained in:
karel.picman@lbcfree.net 2020-10-30 14:21:50 +01:00
parent 49fbc80e35
commit a93da15a8e

View File

@ -25,7 +25,7 @@ module RedmineCustomWorkflows
class Hooks < Redmine::Hook::ViewListener
def view_layouts_base_html_head(context={})
return unless context[:controller].class.name.match?(/^(CustomWorkflows|Projects)/)
return unless /^(CustomWorkflows|Projects)/.match?(context[:controller].class.name)
"\n".html_safe + stylesheet_link_tag('custom_workflows.css', plugin: :redmine_custom_workflows)
end