motion-prime/models/errors.rb in motion-prime-0.5.2 vs motion-prime/models/errors.rb in motion-prime-0.5.3
- old
+ new
@@ -32,9 +32,10 @@
initialize_for_key(key)
send :"#{unique_key(key)}=", Array.wrap(errors)
end
def add(key, error)
+ initialize_for_key(key)
send(unique_key(key)) << error
end
def [](key)
get(key)
\ No newline at end of file