Vote #66374
完了Plugin generators should display help if no parameter is given
0%
説明
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 methodunderscore' for nil:NilClass
underscore' for nil:NilClass
% ruby script/generate redmine_plugin_controller
undefined methodOR (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.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------