プロジェクト

全般

プロフィール

Vote #74612

未完了

Simple Redmine Sub-directory Support

Admin Redmine さんが約4年前に追加.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
-
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
0
version_id:
0
issue_org_id:
15390
author_id:
38734
assigned_to_id:
0
comments:
1
status_id:
1
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

This patch brings HowTo_Install_Redmine_in_a_sub-URI up to Rails 3.
It seems that the routes are loaded before @config/environment.rb@, so putting the @Redmine::Utils::relative_url_root@ there does not work because the scope of the routes has already been set. Each plugin needs to be modified with just the @scope@.

Tested on:

Environment:
  Redmine version                2.3.3.stable.12244
  Ruby version                   2.0.0-p247 (2013-06-27) [i686-linux]
  Rails version                  3.2.13
  Environment                    production
  Database adapter               Mysql2
Redmine plugins:
  redmine_inline_attach_screenshot 0.4.6
  redmine_stealth                0.6.0

For the record, both plugins work fine with almost no modification.


journals

Minor change:
<pre>
scope ActionController::Base.relative_url_root do
</pre>
should probably be
<pre>
scope Redmine::Utils::relative_url_root do
</pre>
for best compatibility
--------------------------------------------------------------------------------

表示するデータがありません

他の形式にエクスポート: Atom PDF

いいね!0