diff options
Diffstat (limited to 'railties/lib/generators/active_record')
-rw-r--r-- | railties/lib/generators/active_record/model/model_generator.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/railties/lib/generators/active_record/model/model_generator.rb b/railties/lib/generators/active_record/model/model_generator.rb index 42ff48c75c..149ce281f3 100644 --- a/railties/lib/generators/active_record/model/model_generator.rb +++ b/railties/lib/generators/active_record/model/model_generator.rb @@ -7,10 +7,9 @@ module ActiveRecord check_class_collision - conditional_class_options :migration, :timestamps - - class_option :parent, :type => :string, - :desc => "The parent class for the generated model" + class_option :migration, :type => :boolean + class_option :timestamps, :type => :boolean + class_option :parent, :type => :string, :desc => "The parent class for the generated model" def create_model_file template 'model.rb', File.join('app/models', class_path, "#{file_name}.rb") |