Skip to content

Commit

Permalink
Merge pull request #9 from agileware-jp/89100-fix_require
Browse files Browse the repository at this point in the history
__dir__の呼び出しをやめる
  • Loading branch information
kumojima authored Nov 18, 2024
2 parents 4c913eb + 8d2332a commit e15d16e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/logs_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
require File.expand_path('../../lib/redmine_logs/log_file', __dir__)

class LogsController < ApplicationController
layout 'admin'
before_action :require_admin
Expand Down
2 changes: 1 addition & 1 deletion init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
require 'redmine'
require File.expand_path('lib/admin_menu_hooks', __dir__)
require File.expand_path('../lib/admin_menu_hooks', __FILE__)

Redmine::Plugin.register :redmine_logs do
name 'Redmine Logs plugin'
Expand Down

0 comments on commit e15d16e

Please sign in to comment.