Sha256: d5370b1cb8bba619bf635e56ee63f109646af483453114c6b22c875f17fc77e6

Contents?: true

Size: 343 Bytes

Versions: 12

Compression:

Stored size: 343 Bytes

Contents

Factory.define :<%= file_name %> do |<%= file_name %>|
<% attributes.each do |attribute| -%>
  <%= factory_line(attribute, file_name) %>
<% end -%>
<% if timestamps %>
  <%= factory_line(MongoAttribute.new('created_at', 'timestamp'), file_name) %>
  <%= factory_line(MongoAttribute.new('updated_at', 'timestamp'), file_name) %>
<% end -%>
end

Version data entries

12 entries across 6 versions & 1 rubygems

Version Path
mongo_mapper_generators-1.0.5 rails_generators/mongo_model/templates/factory.rb
mongo_mapper_generators-1.0.5 rails_generators/embedded_model/templates/factory.rb
mongo_mapper_generators-1.0.4 rails_generators/embedded_model/templates/factory.rb
mongo_mapper_generators-1.0.4 rails_generators/mongo_model/templates/factory.rb
mongo_mapper_generators-1.0.3 rails_generators/embedded_model/templates/factory.rb
mongo_mapper_generators-1.0.3 rails_generators/mongo_model/templates/factory.rb
mongo_mapper_generators-1.0.2 rails_generators/embedded_model/templates/factory.rb
mongo_mapper_generators-1.0.2 rails_generators/mongo_model/templates/factory.rb
mongo_mapper_generators-1.0.1 rails_generators/mongo_model/templates/factory.rb
mongo_mapper_generators-1.0.1 rails_generators/embedded_model/templates/factory.rb
mongo_mapper_generators-1.0.0 rails_generators/embedded_model/templates/factory.rb
mongo_mapper_generators-1.0.0 rails_generators/mongo_model/templates/factory.rb