Project

General

Profile

Patch #4609 ยป redmine_generators_nil_underscore.diff

Jean-Baptiste Barth, 2010-01-19 13:10

View differences:

lib/generators/redmine_plugin_controller/redmine_plugin_controller_generator.rb
6 6
  
7 7
  def initialize(runtime_args, runtime_options = {})
8 8
    runtime_args = runtime_args.dup
9
    usage if runtime_args.empty?
9 10
    @plugin_name = "redmine_" + runtime_args.shift.underscore
10 11
    @plugin_pretty_name = plugin_name.titleize
11 12
    @plugin_path = "vendor/plugins/#{plugin_name}"
lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb
6 6
  
7 7
  def initialize(runtime_args, runtime_options = {})
8 8
    runtime_args = runtime_args.dup
9
    usage if runtime_args.empty?
9 10
    @plugin_name = "redmine_" + runtime_args.shift.underscore
10 11
    @plugin_pretty_name = plugin_name.titleize
11 12
    @plugin_path = "vendor/plugins/#{plugin_name}"
    (1-1/1)