Refactor budget's phase max description lenght from Budget to Phase model

This commit is contained in:
Bertocq
2018-01-15 19:55:41 +01:00
parent 36e74d0ef2
commit f2228a908b
3 changed files with 3 additions and 6 deletions

View File

@@ -4,7 +4,7 @@
<% Budget::PHASES.each do |phase| %>
<div class="margin-top">
<%= f.cktext_area "description_#{phase}", maxlength: Budget.description_max_length, ckeditor: { language: I18n.locale } %>
<%= f.cktext_area "description_#{phase}", maxlength: Budget::Phase::DESCRIPTION_MAX_LENGTH, ckeditor: { language: I18n.locale } %>
</div>
<% end %>