class ActiveResource::Errors
Public Instance Methods
from_array(messages, save_cache=false)
click to toggle source
Patched cause we dont need no attribute name magic .. and its just simpler orig version is looking up the humanized name of the attribute in the error message, which we dont supply => only field name is used in returned error msg
# File lib/sk_sdk/ar_patches/ar3/validations.rb, line 6 def from_array(messages, save_cache=false) clear unless save_cache messages.each do |msg| add msg[0], msg[1] end end