Commit d819ba5867424624503575b3283a0948b2df4f75
1 parent
a6358db9
Exists in
colab
and in
4 other branches
Form errors updated to kalibro_client
There are no more kalibro_errors Signed off by: Daniel Paulino Alves <danpaulalves@gmail.com>
Showing
1 changed file
with
2 additions
and
6 deletions
Show diff stats
app/views/shared/_form_errors.html.erb
1 | -<% if object.errors.any? || object.kalibro_errors.any? %> | |
1 | +<% if object.errors.any? %> | |
2 | 2 | <div id="error_explanation"> |
3 | - <h2><%= pluralize(object.errors.count + object.kalibro_errors.count, "error") %> prohibited this <%= object.class.to_s %> from being saved:</h2> | |
3 | + <h2><%= pluralize(object.errors.count, "error") %> prohibited this <%= object.class.to_s %> from being saved:</h2> | |
4 | 4 | |
5 | 5 | <ul> |
6 | 6 | <% object.errors.full_messages.each do |msg| %> |
7 | 7 | <li><%= msg %></li> |
8 | 8 | <% end %> |
9 | - | |
10 | - <% object.kalibro_errors.each do |msg| %> | |
11 | - <li><%= msg %></li> | |
12 | - <% end %> | |
13 | 9 | </ul> |
14 | 10 | </div> |
15 | 11 | <% end %> |
16 | 12 | \ No newline at end of file | ... | ... |