This commit is contained in:
BoHung Chiu 2021-05-11 10:48:50 +08:00
parent 86eb202d2b
commit fe124800ca
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@
<div class="control-group"> <div class="control-group">
<%= f.label :allow_domain, t("ruling_template.allow_domain"), :class => "control-label muted" %> <%= f.label :allow_domain, t("ruling_template.allow_domain"), :class => "control-label muted" %>
<div class="controls"> <div class="controls">
<%= f.text_field :allow_domain, placeholder: 'example.com' %> <%= f.text_field :allow_domain, placeholder: 'example.com', :value=>(f.object.allow_domain.class==Array ? f.object.allow_domain.join(",") : f.object.allow_domain) %>
</div> </div>
</div> </div>
<div class="control-group"> <div class="control-group">