Skip to content

Commit ee8394b

Browse files
committed
Support zeitwerk
1 parent a3720b9 commit ee8394b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

35_change_load_order_locales.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# frozen_string_literal: true
22

3+
require 'redmine/plugin'
34
if Redmine::Plugin.installed? :redmine_message_customize
45
p = Redmine::Plugin.find(:redmine_message_customize)
56
custom_locales = Dir.glob(File.join(p.directory, 'config', 'locales', 'custom_messages', '*.rb'))

init.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
require_dependency 'message_customize/locale'
1+
require File.expand_path('../lib/message_customize/locale', __FILE__)
22

33
p = Redmine::Plugin.register :redmine_message_customize do
44
name 'Redmine message customize plugin'
5-
version '0.1.1'
5+
version '0.1.2'
66
description 'This is a plugin that allows messages in Redmine to be overwritten from the admin view'
77
settings default: { custom_messages: {} }
88
menu :admin_menu, :custom_messages, { controller: 'custom_message_settings', action: 'edit' },

0 commit comments

Comments
 (0)