diff options
author | Chris Oliver <excid3@gmail.com> | 2019-03-28 09:16:47 -0500 |
---|---|---|
committer | Chris Oliver <excid3@gmail.com> | 2019-03-28 23:58:33 -0500 |
commit | 19a29c6556a53b7258bfbfb6164dff344649b331 (patch) | |
tree | a5998e2fbdf03dffc6be6aef12a37061cb806c54 /railties/lib/rails/generators/test_unit | |
parent | 0223665c971b98fe0ac82b78b485ee1330d4c1e3 (diff) | |
download | rails-19a29c6556a53b7258bfbfb6164dff344649b331.tar.gz rails-19a29c6556a53b7258bfbfb6164dff344649b331.tar.bz2 rails-19a29c6556a53b7258bfbfb6164dff344649b331.zip |
Add rich_text field to model generators
Diffstat (limited to 'railties/lib/rails/generators/test_unit')
-rw-r--r-- | railties/lib/rails/generators/test_unit/model/templates/fixtures.yml.tt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/test_unit/model/templates/fixtures.yml.tt b/railties/lib/rails/generators/test_unit/model/templates/fixtures.yml.tt index ee4ae47727..0fd9f305d7 100644 --- a/railties/lib/rails/generators/test_unit/model/templates/fixtures.yml.tt +++ b/railties/lib/rails/generators/test_unit/model/templates/fixtures.yml.tt @@ -7,7 +7,7 @@ password_digest: <%%= BCrypt::Password.create('secret') %> <%- elsif attribute.reference? -%> <%= yaml_key_value(attribute.column_name.sub(/_id$/, ''), attribute.default || name) %> - <%- else -%> + <%- elsif !attribute.virtual? -%> <%= yaml_key_value(attribute.column_name, attribute.default) %> <%- end -%> <%- if attribute.polymorphic? -%> |