diff options
Diffstat (limited to 'railties/lib/generators/rails/model')
-rw-r--r-- | railties/lib/generators/rails/model/model_generator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/generators/rails/model/model_generator.rb b/railties/lib/generators/rails/model/model_generator.rb index 189f072365..629d5eed3f 100644 --- a/railties/lib/generators/rails/model/model_generator.rb +++ b/railties/lib/generators/rails/model/model_generator.rb @@ -1,7 +1,7 @@ module Rails module Generators class ModelGenerator < NamedBase #metagenerator - argument :attributes, :type => :hash, :default => {}, :banner => "field:type field:type" + argument :attributes, :type => :array, :default => [], :banner => "field:type field:type" hook_for :orm, :required => true end end |