Sha256: fe30b9ea3ce78306733a915f0c3dde5f571079ff3c0e37da9f53ff6509aa3a06
Contents?: true
Size: 353 Bytes
Versions: 1
Compression:
Stored size: 353 Bytes
Contents
FactoryBot.define do factory :<%= name %>, class: <%= record.class %> do <% columns.each do |column| %> <% quote = FactoryBotGenerator::QUOTE_AROUND_VALUE_TYPES.include?(record.class.columns_hash[column].type) %> <%= "%-#{indent}s" % column %> <%== "'" if quote %><%== record.public_send(column) %><%== "'" if quote %> <% end %> end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
factory_bot_generator-0.2.0 | lib/factory_bot_generator.erb |