1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #18378 from shunsukeaida/avoid_orm_being_humanized_in_generator_help_message

Overwrite descriptions generated by Generators::Base to respect acronym.
This commit is contained in:
Carlos Antonio da Silva 2015-01-07 09:27:17 -02:00
commit 9892d445bc
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@ module Rails
module Generators module Generators
class MigrationGenerator < NamedBase # :nodoc: class MigrationGenerator < NamedBase # :nodoc:
argument :attributes, type: :array, default: [], banner: "field[:type][:index] field[:type][:index]" argument :attributes, type: :array, default: [], banner: "field[:type][:index] field[:type][:index]"
hook_for :orm, required: true hook_for :orm, required: true, desc: "ORM to be invoked"
end end
end end
end end

View file

@ -6,7 +6,7 @@ module Rails
include Rails::Generators::ModelHelpers include Rails::Generators::ModelHelpers
argument :attributes, type: :array, default: [], banner: "field[:type][:index] field[:type][:index]" argument :attributes, type: :array, default: [], banner: "field[:type][:index] field[:type][:index]"
hook_for :orm, required: true hook_for :orm, required: true, desc: "ORM to be invoked"
end end
end end
end end