lib/volt/models/errors.rb in volt-0.8.27.beta7 vs lib/volt/models/errors.rb in volt-0.8.27.beta8
- old
+ new
@@ -15,7 +15,18 @@
add(field, message)
end
end
end
end
+
+ # Generate a string version of all of the errors
+ def to_s
+ str = []
+
+ each_pair do |field, error|
+ str << "#{field} #{error}"
+ end
+
+ str.join
+ end
end
end
\ No newline at end of file