プロジェクト

全般

プロフィール

Vote #66374

完了

Plugin generators should display help if no parameter is given

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
低め
担当者:
-
カテゴリ:
Plugin API_20
対象バージョン:
開始日:
2010/01/19
期日:
進捗率:

0%

予定工数:
category_id:
20
version_id:
18
issue_org_id:
4609
author_id:
1188
assigned_to_id:
1
comments:
2
status_id:
5
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

I was sure I reported this before but cannot find the issue here on redmine.org...

In most (all?) standard generators, if no parameter is given, the help is displayed. I often rely on this when generating models/controllers, but I get an error with 2 redmine generators :


% ruby script/generate redmine_plugin_model
undefined method underscore' for nil:NilClass
% ruby script/generate redmine_plugin_controller
undefined method
underscore' for nil:NilClass

OR (on an other machine) :
% ruby script/generate redmine_plugin_controller
You have a nil object when you didn't expect it!
The error occurred while evaluating nil.underscore

I leave a tiny, tiny patch.

NB: redmine_plugin is not affected by such a bug since "super" is called at the beginning of the initialize() method.


journals

Committed in r3514, thanks.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリPlugin API_20 にセット
  • 対象バージョン0.9.4_18 にセット

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

いいね!0
いいね!0