Sha256: 09ba04c3f62647c42ad253f741cc1afbacc351cdd784c9eb3e6af802e80ad47f

Contents?: true

Size: 195 Bytes

Versions: 9

Compression:

Stored size: 195 Bytes

Contents

Factory.define :<%= singular_name %> do |<%= singular_name %>|
<% for attribute in attributes -%>
  <%= singular_name %>.<%= attribute.column.name %> { '<%= attribute.default %>' }
<% end -%>
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
jzajpt-blueberry_scaffold-0.1.0 generators/blueberry_scaffold/templates/factory.rb
jzajpt-blueberry_scaffold-0.1.1 generators/blueberry_scaffold/templates/factory.rb
jzajpt-blueberry_scaffold-0.2.1 generators/blueberry_scaffold/templates/factory.rb
jzajpt-blueberry_scaffold-0.3.0 generators/blueberry_scaffold/templates/factory.rb
jzajpt-blueberry_scaffold-0.3.1 generators/blueberry_scaffold/templates/factory.rb
jzajpt-blueberry_scaffold-0.3.2 generators/blueberry_scaffold/templates/factory.rb
jzajpt-blueberry_scaffold-0.3.3 generators/blueberry_scaffold/templates/factory.rb
jzajpt-blueberry_scaffold-0.3.4 generators/blueberry_scaffold/templates/factory.rb
jzajpt-blueberry_scaffold-0.3.5 generators/blueberry_scaffold/templates/factory.rb