@@ -106,6 +106,7 module ApplicationHelper | |||
|
106 | 106 | full_messages = [] |
|
107 | 107 | object.errors.each do |attr, msg| |
|
108 | 108 | next if msg.nil? |
|
109 | msg = msg.first if msg.is_a? Array | |
|
109 | 110 | if attr == "base" |
|
110 | 111 | full_messages << l(msg) |
|
111 | 112 | else |
@@ -117,6 +118,7 module ApplicationHelper | |||
|
117 | 118 | object.custom_values.each do |v| |
|
118 | 119 | v.errors.each do |attr, msg| |
|
119 | 120 | next if msg.nil? |
|
121 | msg = msg.first if msg.is_a? Array | |
|
120 | 122 | full_messages << "« " + v.custom_field.name + " » " + l(msg) |
|
121 | 123 | end |
|
122 | 124 | end |
General Comments 0
You need to be logged in to leave comments.
Login now