diff options
author | shunsukeaida <s.aida@scsk.jp> | 2015-01-07 13:04:57 +0900 |
---|---|---|
committer | shunsukeaida <s.aida@scsk.jp> | 2015-01-07 13:04:57 +0900 |
commit | 884d123e131c931b754213f4e4442a01378aa6f2 (patch) | |
tree | 19965bd783df1080184040973713abb85069690f /railties | |
parent | b273c04f15e13a668003b372cc7eedd76b6409f4 (diff) | |
download | rails-884d123e131c931b754213f4e4442a01378aa6f2.tar.gz rails-884d123e131c931b754213f4e4442a01378aa6f2.tar.bz2 rails-884d123e131c931b754213f4e4442a01378aa6f2.zip |
acronyms like ORM should be in uppercase, so overwrite the desc generated by hook_for
Diffstat (limited to 'railties')
-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 |