lib/rails/generators/mongoid/model/model_generator.rb in mongoid-3.0.23 vs lib/rails/generators/mongoid/model/model_generator.rb in mongoid-3.1.0

- old
+ new

@@ -11,9 +11,10 @@ check_class_collision class_option :timestamps, type: :boolean class_option :parent, type: :string, desc: "The parent class for the generated model" class_option :versioning, type: :boolean, default: false, desc: "Enable mongoid versioning" + class_option :collection, type: :string, desc: "The collection for storing model's documents" def create_model_file template "model.rb.tt", File.join("app/models", class_path, "#{file_name}.rb") end