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:
commit
9892d445bc
@ -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
|
||||||
|
@ -6,7 +6,7 @@ class ModelGenerator < NamedBase # :nodoc:
|
|||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user