ruby 2.3 compatibility
This commit is contained in:
parent
5e934607cd
commit
6c66e61ff6
@ -26,13 +26,13 @@ module RedmineDmsf
|
||||
|
||||
# TODO: *.css are twice there
|
||||
def view_layouts_base_html_head(context={})
|
||||
return unless context[:controller].class.name.match?(/^(Dmsf|Projects)/)
|
||||
return unless /^(Dmsf|Projects)/.match?(context[:controller].class.name)
|
||||
meta = "\n".html_safe + stylesheet_link_tag('redmine_dmsf.css', plugin: :redmine_dmsf) +
|
||||
"\n".html_safe + stylesheet_link_tag('select2.min.css', plugin: :redmine_dmsf) +
|
||||
"\n".html_safe + javascript_include_tag('select2.min.js', plugin: :redmine_dmsf, defer: true) +
|
||||
"\n".html_safe + javascript_include_tag('redmine_dmsf.js', plugin: :redmine_dmsf, defer: true) +
|
||||
"\n".html_safe + javascript_include_tag('attachments_dmsf.js', plugin: :redmine_dmsf, defer: true)
|
||||
if defined?(EasyExtensions) && context[:controller].class.name.match?(/^Dmsf/)
|
||||
if defined?(EasyExtensions) && /^Dmsf/.match?(context[:controller].class.name)
|
||||
meta << "\n".html_safe + javascript_include_tag('context_menu', 'application', defer: true)
|
||||
end
|
||||
meta
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user