Sha256: c46f7faa52034b9c2b565a70110e7417b8b84f2e3d308585e7215d23cdbacaef

Contents?: true

Size: 413 Bytes

Versions: 2

Compression:

Stored size: 413 Bytes

Contents

# Generated via
#  `rails generate common_repository_model::collection <%= class_name %>`
#
# Read about factories at https://github.com/thoughtbot/factory_girl

require 'common_repository_model/test_support'
FactoryGirl.define do
  factory :<%= singular_table_name %>, class: <%= class_name %> do
<% for attribute in attributes -%>
    <%= attribute.name %> <%= attribute.default.inspect %>
<% end -%>
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
common_repository_model-0.0.8 lib/generators/common_repository_model/collection/templates/collection_factory.rb.erb
common_repository_model-0.0.7 lib/generators/common_repository_model/collection/templates/collection_factory.rb.erb