mirror of
https://0xacab.org/sutty/sutty
synced 2025-02-22 21:01:51 +00:00
Solo crear el DeployLocal una vez
This commit is contained in:
parent
70c8bcbcd1
commit
11e45bbc05
2 changed files with 4 additions and 7 deletions
|
@ -9,4 +9,6 @@
|
||||||
= sanitize_markdown t('.help', url: deploy.object.url),
|
= sanitize_markdown t('.help', url: deploy.object.url),
|
||||||
tags: %w[p strong em a]
|
tags: %w[p strong em a]
|
||||||
|
|
||||||
|
-# No duplicarlos una vez que existen.
|
||||||
|
- unless deploy.object.persisted?
|
||||||
= deploy.hidden_field :type
|
= deploy.hidden_field :type
|
||||||
|
|
|
@ -119,12 +119,7 @@ class SitesControllerTest < ActionDispatch::IntegrationTest
|
||||||
title: name,
|
title: name,
|
||||||
description: name * 2,
|
description: name * 2,
|
||||||
design_id: design.id,
|
design_id: design.id,
|
||||||
licencia_id: Licencia.all.second.id,
|
licencia_id: Licencia.all.second.id
|
||||||
deploys_attributes: {
|
|
||||||
'0' => {
|
|
||||||
type: 'DeployLocal'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue