Sha256: 6f5f85c196a6ca7d4495ef946e7f94da5ae944e2e3c0ab5aaefbfc806b5c4e95

Contents?: true

Size: 458 Bytes

Versions: 2

Compression:

Stored size: 458 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 %>, parent: :common_repository_model_collection 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.1.0 lib/generators/common_repository_model/collection/templates/collection_factory.rb.erb
common_repository_model-0.0.9 lib/generators/common_repository_model/collection/templates/collection_factory.rb.erb