Explorar el Código

String errors should be added to :base

Shawn French hace 9 años
padre
commit
458085e05e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/active_resource/json_errors.rb

+ 1 - 1
lib/active_resource/json_errors.rb

@@ -25,7 +25,7 @@ module ActiveResource
     def from_string(error, save_cache = false)
       clear unless save_cache
 
-      add("message", error)
+      add(:base, error)
     end
   end
 end