diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2015-01-07 09:27:17 -0200 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2015-01-07 09:27:17 -0200 |
commit | 9892d445bcff57f0a8bd8eb467cb7bf8c40a285b (patch) | |
tree | 8e1953f9d9b0eaa591b4a73755d75e101133949b | |
parent | f9e0ec544989c2d93ed40d0acdbc627f6a624eb1 (diff) | |
parent | 884d123e131c931b754213f4e4442a01378aa6f2 (diff) | |
download | rails-9892d445bcff57f0a8bd8eb467cb7bf8c40a285b.tar.gz rails-9892d445bcff57f0a8bd8eb467cb7bf8c40a285b.tar.bz2 rails-9892d445bcff57f0a8bd8eb467cb7bf8c40a285b.zip |
Merge pull request #18378 from shunsukeaida/avoid_orm_being_humanized_in_generator_help_message
Overwrite descriptions generated by Generators::Base to respect acronym.
-rw-r--r-- | railties/lib/rails/generators/rails/migration/migration_generator.rb | 2 | ||||
-rw-r--r-- | railties/lib/rails/generators/rails/model/model_generator.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/generators/rails/migration/migration_generator.rb b/railties/lib/rails/generators/rails/migration/migration_generator.rb index 965c42db36..fca2a8fef4 100644 --- a/railties/lib/rails/generators/rails/migration/migration_generator.rb +++ b/railties/lib/rails/generators/rails/migration/migration_generator.rb @@ -2,7 +2,7 @@ module Rails module Generators class MigrationGenerator < NamedBase # :nodoc: 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 diff --git a/railties/lib/rails/generators/rails/model/model_generator.rb b/railties/lib/rails/generators/rails/model/model_generator.rb index 87bab129bb..ec78fd855d 100644 --- a/railties/lib/rails/generators/rails/model/model_generator.rb +++ b/railties/lib/rails/generators/rails/model/model_generator.rb @@ -6,7 +6,7 @@ module Rails include Rails::Generators::ModelHelpers 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 |