Skip to content

Commit 66ff949

Browse files
committed
Fix after_plugins_loaded argument
1 parent 8ef5e3c commit 66ff949

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/message_customize/hooks.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module MessageCustomize
44
class Hooks < Redmine::Hook::ViewListener
55
# The language file for redmine_message_customize should be given the highest priority because it overrides other plugin languages.
66
# Set the language file to be loaded with the highest priority after all plugins have finished loading.
7-
def after_plugins_loaded()
7+
def after_plugins_loaded(_context)
88
p = Redmine::Plugin.find(:redmine_message_customize)
99
custom_locales = Dir.glob(File.join(p.directory, 'config', 'locales', 'custom_messages', '*.rb'))
1010
Rails.application.config.i18n.load_path = (Rails.application.config.i18n.load_path - custom_locales + custom_locales)

0 commit comments

Comments
 (0)